mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Update support_command.ino
This commit is contained in:
parent
5015409af6
commit
bb76052a53
@ -1201,18 +1201,17 @@ void CmndGpio(void)
|
|||||||
if ((ResponseAppend_P(PSTR("\"" D_CMND_GPIO "%d\":{\"%d\":\"%s%s\"}"), i, sensor_type, GetTextIndexed(stemp1, sizeof(stemp1), sensor_name_idx, sensor_names), sindex) > (MAX_LOGSZ - TOPSZ)) || (i == ARRAY_SIZE(Settings.my_gp.io) -1)) {
|
if ((ResponseAppend_P(PSTR("\"" D_CMND_GPIO "%d\":{\"%d\":\"%s%s\"}"), i, sensor_type, GetTextIndexed(stemp1, sizeof(stemp1), sensor_name_idx, sensor_names), sindex) > (MAX_LOGSZ - TOPSZ)) || (i == ARRAY_SIZE(Settings.my_gp.io) -1)) {
|
||||||
ResponseJsonEnd();
|
ResponseJsonEnd();
|
||||||
MqttPublishPrefixTopic_P(RESULT_OR_STAT, XdrvMailbox.command);
|
MqttPublishPrefixTopic_P(RESULT_OR_STAT, XdrvMailbox.command);
|
||||||
|
ResponseClear();
|
||||||
jsflg2 = true;
|
jsflg2 = true;
|
||||||
jsflg = false;
|
jsflg = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (jsflg2) {
|
if (jsflg) {
|
||||||
ResponseClear();
|
ResponseJsonEnd();
|
||||||
} else {
|
} else {
|
||||||
if (jsflg) {
|
if (!jsflg2) {
|
||||||
ResponseJsonEnd();
|
ResponseCmndChar(PSTR(D_JSON_NOT_SUPPORTED));
|
||||||
} else {
|
|
||||||
ResponseCmndChar(D_JSON_NOT_SUPPORTED);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user