mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Small vuild issue fixed
This commit is contained in:
parent
793a775c49
commit
e9dac687c5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user