From e9dac687c522f5d4af5318590d7d29e1bc3a4638 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Wed, 18 Nov 2020 20:03:31 +0100 Subject: [PATCH] Small vuild issue fixed --- src/hasp_dispatch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hasp_dispatch.cpp b/src/hasp_dispatch.cpp index f57bc08a..386bf3d8 100644 --- a/src/hasp_dispatch.cpp +++ b/src/hasp_dispatch.cpp @@ -101,8 +101,8 @@ void dispatchCommand(const char * topic, const char * payload) // check and execute commands from commands array for(int i = 0; i < nCommands; i++) { if(!strcasecmp_P(topic, commands[i].p_cmdstr)) { - Log.warning(TAG_MSGR, F("Command %d found in array !!!"), i); - /*exec*/ commands[i].func((char *)payload); + // Log.warning(TAG_MSGR, F("Command %d found in array !!!"), i); + commands[i].func((char *)payload); /* execute command */ return; } } @@ -464,7 +464,7 @@ void dispatchConfig(const char * topic, const char * payload) // Send output if(!update) { - settings.remove(F(F_CONFIG_PASS)); // hide password in output + settings.remove(F("pass")); // hide password in output size_t size = serializeJson(doc, buffer, sizeof(buffer)); #if !defined(HASP_USE_MQTT) && !defined(HASP_USE_TASMOTA_SLAVE) Log.notice(TAG_MSGR, F("config %s = %s"), topic, buffer);