Skip to content

Commit

Permalink
Fix raw brightness being cached instead of normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jul 8, 2022
1 parent fab76c1 commit 80026bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ function updateBrightness(index, level, useCap = true, vcp = "brightness", clear
const normalized = normalizeBrightness(level, false, (useCap ? monitor.min : 0), (useCap ? monitor.max : 100))

if (monitor.type == "ddcci" && vcp === "brightness") {
monitor.brightness = level
monitor.brightness = normalized
monitorsThread.send({
type: "brightness",
brightness: normalized * ((monitor.brightnessMax || 100) / 100),
Expand Down

0 comments on commit 80026bf

Please sign in to comment.