From daab6ebbefd8470d0064efe200349a2ea6d2730d Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 12 Oct 2020 19:35:50 +0200 Subject: [PATCH] Minor fixes --- tasmota/xdrv_04_light.ino | 2 +- tasmota/xdrv_23_zigbee_8_parsers.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index a569183b8..f6f3ced85 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -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 } diff --git a/tasmota/xdrv_23_zigbee_8_parsers.ino b/tasmota/xdrv_23_zigbee_8_parsers.ino index 6f3c01414..71097fb63 100644 --- a/tasmota/xdrv_23_zigbee_8_parsers.ino +++ b/tasmota/xdrv_23_zigbee_8_parsers.ino @@ -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); } /*********************************************************************************************\