Skip to content

Commit

Permalink
Force HDR options on for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Oct 8, 2024
1 parent e7526d2 commit 2ec83a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Monitors.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ refreshMonitors = async (fullRefresh = false, ddcciType = "default", alwaysSendU
}

// HDR
if (settings.enableHDR) {
if (true || settings.enableHDR) {
try {
startTime = process.hrtime.bigint()
monitorsHDR = await getHDRDisplays(monitors);
Expand Down Expand Up @@ -378,7 +378,7 @@ getAllMonitors = async (ddcciMethod = "default") => {
}

// HDR
if (settings.enableHDR) {
if (true || settings.enableHDR) {
try {
startTime = process.hrtime.bigint()
monitorsHDR = await getHDRDisplays(foundMonitors);
Expand Down Expand Up @@ -873,7 +873,7 @@ updateDisplay = (monitors, hwid2, info = {}) => {
}

function setSDRBrightness(brightness, id) {
if(!settings.enableHDR) return false;
if(false && !settings.enableHDR) return false;
try {
console.log("sdr", brightness, id)
hdr.setSDRBrightness(id, (brightness * 0.01 * 400) + 80)
Expand Down

0 comments on commit 2ec83a9

Please sign in to comment.