Fix unknown command topic

This commit is contained in:
Theo Arends 2020-01-14 16:57:55 +01:00
parent d1aee7dfec
commit 338499d8e2
1 changed files with 2 additions and 2 deletions

View File

@ -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') {