Skip to content

Commit

Permalink
Fix brightness being set without normalization
Browse files Browse the repository at this point in the history
Whoops
  • Loading branch information
xanderfrangos committed Oct 22, 2024
1 parent d93d7c4 commit 771204a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1912,12 +1912,12 @@ function updateBrightness(index, newLevel, useCap = true, vcpValue = "brightness
return false
}

const normalized = normalizeBrightness(level, false, 0, 100)
const normalized = normalizeBrightness(level, false, monitor.min, monitor.max)

if (vcp === "sdr") {
monitorsThread.send({
type: "sdr",
brightness: normalized,
brightness: level,
id: monitor.id
})
} else if (monitor.type == "ddcci") {
Expand Down

0 comments on commit 771204a

Please sign in to comment.