From cf9b8fe6198e6da1fd8c500c5cb8dfb5d0b5dda5 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 2 Nov 2020 15:21:32 +0100 Subject: [PATCH] Restore status command --- tasmota/support_command.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index c4deba6ce..cbeab8d0f 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -391,7 +391,7 @@ void CmndPower(void) void CmndStatus(void) { - uint32_t payload = XdrvMailbox.payload; + int32_t payload = XdrvMailbox.payload; if (payload > MAX_STATUS) { return; } // {"Command":"Error"} if (!Settings.flag.mqtt_enabled && (6 == payload)) { return; } // SetOption3 - Enable MQTT @@ -402,7 +402,7 @@ void CmndStatus(void) char stemp[200]; char stemp2[TOPSZ]; - if (0 == payload) { + if ((0 == payload) || (-99 == payload)) { uint32_t maxfn = (TasmotaGlobal.devices_present > MAX_FRIENDLYNAMES) ? MAX_FRIENDLYNAMES : (!TasmotaGlobal.devices_present) ? 1 : TasmotaGlobal.devices_present; #ifdef USE_SONOFF_IFAN if (IsModuleIfan()) { maxfn = 1; }