mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
commit
6d22c52fbd
@ -1859,7 +1859,7 @@ void LightAnimate(void)
|
||||
// or set a maximum of PWM_MAX_SLEEP if light is on or Fade is running
|
||||
if (Light.power || Light.fade_running) {
|
||||
if (Settings.sleep > PWM_MAX_SLEEP) {
|
||||
ssleep = PWM_MAX_SLEEP; // set a maxumum value of 50 milliseconds to ensure that animations are smooth
|
||||
ssleep = PWM_MAX_SLEEP; // set a maxumum value of 10 milliseconds to ensure that animations are smooth
|
||||
} else {
|
||||
ssleep = Settings.sleep; // or keep the current sleep if it's lower than 50
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
uint8_t ZNP_RSSI2Lqi(int8_t rssi) {
|
||||
if (rssi < -87) { rssi = -87; }
|
||||
if (rssi > 10) { rssi = 10; }
|
||||
return changeUIntScale(rssi + 87, 0, 87+10, 0, 255);
|
||||
return changeUIntScale(rssi + 87, 0, 87+10, 0, 254);
|
||||
}
|
||||
|
||||
/*********************************************************************************************\
|
||||
|
Loading…
x
Reference in New Issue
Block a user