From 5459adc5b8707dd80eca261c23605681bead9a3c Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 15 Feb 2021 09:06:52 +0100 Subject: [PATCH] Update xdrv_04_light.ino --- tasmota/xdrv_04_light.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_04_light.ino b/tasmota/xdrv_04_light.ino index 395fae4b5..0144d826d 100644 --- a/tasmota/xdrv_04_light.ino +++ b/tasmota/xdrv_04_light.ino @@ -2855,6 +2855,7 @@ void CmndFade(void) void CmndSpeed(void) { if (2 == XdrvMailbox.index) { + // Speed2 setting will be used only once, then revert to fade/speed if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 40)) { Light.fade_once_enabled = true; Light.fade_once_value = (XdrvMailbox.payload > 0); @@ -2862,7 +2863,7 @@ void CmndSpeed(void) Light.speed_once_value = XdrvMailbox.payload; if (!Light.fade_once_value) { Light.fade_running = false; } } - ResponseCmndNumber(Light.speed_once_value); + ResponseCmndIdxNumber(Light.speed_once_value); } else { // Speed 1 - Fast // Speed 40 - Very slow