Browse Source

Always set white inputValue to 0

rfm69
Niklas Wagner 6 years ago
parent
commit
412051ae8d
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[i].value = _light_channel[i].inputValue - white;
} }
_light_channel[3].value = 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)); 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) { if (max_out > 0) {


Loading…
Cancel
Save