Skip to content

Commit

Permalink
Hexadecimal string support for userDDCBrightnessVCPs
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Aug 25, 2022
1 parent 1ea18ef commit 0e80935
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,9 @@ function getSettings() {
function getDDCBrightnessVCPs() {
try {
let ids = Object.assign(knownDDCBrightnessVCPs, settings.userDDCBrightnessVCPs)
for(let mon in ids) {
ids[mon] = parseInt(ids[mon])
}
return ids
} catch(e) {
console.log("Couldn't generate DDC Brightness IDs!", e)
Expand Down

0 comments on commit 0e80935

Please sign in to comment.