mirror of https://github.com/arendst/Tasmota.git
Change MIN to MAX
This commit is contained in:
parent
f9cf462e59
commit
62e8c65dc8
|
@ -219,7 +219,7 @@
|
||||||
#define APP_BLINKTIME 10 // [BlinkTime] Time in 0.1 Sec to blink/toggle power for relay 1
|
#define APP_BLINKTIME 10 // [BlinkTime] Time in 0.1 Sec to blink/toggle power for relay 1
|
||||||
#define APP_BLINKCOUNT 10 // [BlinkCount] Number of blinks (0 = 32000)
|
#define APP_BLINKCOUNT 10 // [BlinkCount] Number of blinks (0 = 32000)
|
||||||
#define APP_SLEEP 0 // [Sleep] Sleep time to lower energy consumption (0 = Off, 1 - 250 mSec),
|
#define APP_SLEEP 0 // [Sleep] Sleep time to lower energy consumption (0 = Off, 1 - 250 mSec),
|
||||||
#define PWM_MIN_SLEEP 10 // Sleep will be lowered to this value when light is on, to avoid flickering
|
#define PWM_MAX_SLEEP 10 // Sleep will be lowered to this value when light is on, to avoid flickering
|
||||||
|
|
||||||
#define KEY_DEBOUNCE_TIME 50 // [ButtonDebounce] Number of mSeconds button press debounce time
|
#define KEY_DEBOUNCE_TIME 50 // [ButtonDebounce] Number of mSeconds button press debounce time
|
||||||
#define KEY_HOLD_TIME 40 // [SetOption32] Number of 0.1 seconds to hold Button or external Pushbutton before sending HOLD message
|
#define KEY_HOLD_TIME 40 // [SetOption32] Number of 0.1 seconds to hold Button or external Pushbutton before sending HOLD message
|
||||||
|
|
|
@ -1594,8 +1594,8 @@ void LightAnimate(void)
|
||||||
sleep = Settings.sleep;
|
sleep = Settings.sleep;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Settings.sleep > PWM_MIN_SLEEP) {
|
if (Settings.sleep > PWM_MAX_SLEEP) {
|
||||||
sleep = PWM_MIN_SLEEP; // set a minimal value of 50 milliseconds to ensure that animations are smooth
|
sleep = PWM_MAX_SLEEP; // set a maxumum value of 50 milliseconds to ensure that animations are smooth
|
||||||
} else {
|
} else {
|
||||||
sleep = Settings.sleep; // or keep the current sleep if it's lower than 50
|
sleep = Settings.sleep; // or keep the current sleep if it's lower than 50
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue