From 338499d8e2b7d23a7964a5c667e3155724a030e4 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 14 Jan 2020 16:57:55 +0100 Subject: [PATCH] Fix unknown command topic --- 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 2149bd083..a1c38cf43 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -237,9 +237,9 @@ void CommandHandler(char* topicBuf, char* dataBuf, uint32_t data_len) if (type == nullptr) { blinks = 201; - snprintf_P(topicBuf, sizeof(topicBuf), PSTR(D_JSON_COMMAND)); + snprintf_P(stemp1, sizeof(stemp1), PSTR(D_JSON_COMMAND)); Response_P(PSTR("{\"" D_JSON_COMMAND "\":\"" D_JSON_UNKNOWN "\"}")); - type = (char*)topicBuf; + type = (char*)stemp1; } if (mqtt_data[0] != '\0') {