Browse Source

Merge pull request #778 from Skaronator/ForceWhiteValue

Always set white inputValue to 0
rfm69
Xose Pérez 6 years ago
committed by GitHub
parent
commit
9dd2d3c8f4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/light.ino

+ 1
- 0
code/espurna/light.ino View File

@ -99,6 +99,7 @@ void _generateBrightness() {
_light_channel[i].value = _light_channel[i].inputValue - white;
}
_light_channel[3].value = white;
_light_channel[3].inputValue = 0;
max_out = std::max(std::max(_light_channel[0].value, _light_channel[1].value), std::max(_light_channel[2].value, _light_channel[3].value));
if (max_out > 0) {


Loading…
Cancel
Save