mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Minor fixes
This commit is contained in:
parent
40ad4f7ed0
commit
daab6ebbef
@ -1859,7 +1859,7 @@ void LightAnimate(void)
|
|||||||
// or set a maximum of PWM_MAX_SLEEP if light is on or Fade is running
|
// or set a maximum of PWM_MAX_SLEEP if light is on or Fade is running
|
||||||
if (Light.power || Light.fade_running) {
|
if (Light.power || Light.fade_running) {
|
||||||
if (Settings.sleep > PWM_MAX_SLEEP) {
|
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 {
|
} else {
|
||||||
ssleep = Settings.sleep; // or keep the current sleep if it's lower than 50
|
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) {
|
uint8_t ZNP_RSSI2Lqi(int8_t rssi) {
|
||||||
if (rssi < -87) { rssi = -87; }
|
if (rssi < -87) { rssi = -87; }
|
||||||
if (rssi > 10) { rssi = 10; }
|
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