Browse Source

Fix lightBrightnessStep

fastled
Xose Pérez 6 years ago
parent
commit
26d3646a4a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      code/espurna/light.ino
  2. +1
    -1
      code/espurna/light_ir.ino

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

@ -508,7 +508,7 @@ unsigned int lightBrightness() {
return _brightness;
}
void lightBrightness(unsigned int b) {
void lightBrightness(int b) {
_brightness = constrain(b, 0, LIGHT_MAX_BRIGHTNESS);
}


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

@ -834,7 +834,7 @@ unsigned int lightBrightness() {
// ---------------------------------------------------------------------------------------
// Set Brightness
void lightBrightness(unsigned int b) {
void lightBrightness(int b) {
b=constrain(b, 0, 255);
DEBUG_MSG_P(PSTR("[WEB|API] Set Brightness to : %d\n"), b);
_cur_color.v=b;


Loading…
Cancel
Save