Browse Source

Use brightness when mocking RGB white

fastled
Xose Pérez 7 years ago
parent
commit
571edc32e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/light.ino

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

@ -210,7 +210,7 @@ void _shadow() {
if (_lightState && useWhite && _channels.size() > 3) { if (_lightState && useWhite && _channels.size() > 3) {
if (_channels[0].shadow == _channels[1].shadow && _channels[1].shadow == _channels[2].shadow ) { if (_channels[0].shadow == _channels[1].shadow && _channels[1].shadow == _channels[2].shadow ) {
_channels[3].shadow = _channels[0].shadow;
_channels[3].shadow = _channels[0].shadow * ((float) _brightness / LIGHT_MAX_BRIGHTNESS);
_channels[2].shadow = 0; _channels[2].shadow = 0;
_channels[1].shadow = 0; _channels[1].shadow = 0;
_channels[0].shadow = 0; _channels[0].shadow = 0;


Loading…
Cancel
Save