mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +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
|
// check and execute commands from commands array
|
||||||
for(int i = 0; i < nCommands; i++) {
|
for(int i = 0; i < nCommands; i++) {
|
||||||
if(!strcasecmp_P(topic, commands[i].p_cmdstr)) {
|
if(!strcasecmp_P(topic, commands[i].p_cmdstr)) {
|
||||||
Log.warning(TAG_MSGR, F("Command %d found in array !!!"), i);
|
// Log.warning(TAG_MSGR, F("Command %d found in array !!!"), i);
|
||||||
/*exec*/ commands[i].func((char *)payload);
|
commands[i].func((char *)payload); /* execute command */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -464,7 +464,7 @@ void dispatchConfig(const char * topic, const char * payload)
|
|||||||
|
|
||||||
// Send output
|
// Send output
|
||||||
if(!update) {
|
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));
|
size_t size = serializeJson(doc, buffer, sizeof(buffer));
|
||||||
#if !defined(HASP_USE_MQTT) && !defined(HASP_USE_TASMOTA_SLAVE)
|
#if !defined(HASP_USE_MQTT) && !defined(HASP_USE_TASMOTA_SLAVE)
|
||||||
Log.notice(TAG_MSGR, F("config %s = %s"), topic, buffer);
|
Log.notice(TAG_MSGR, F("config %s = %s"), topic, buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user