mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 01:55:34 +00:00
update sub modules, fix build, fix some warnings
This commit is contained in:
@ -1960,13 +1960,13 @@ int http_fn_cm(http_request_t* request) {
|
||||
if (long_str_alloced) {
|
||||
http_getArg(request->url, "cmnd", long_str_alloced, commandLen);
|
||||
CMD_ExecuteCommand(long_str_alloced, COMMAND_FLAG_SOURCE_HTTP);
|
||||
JSON_ProcessCommandReply(long_str_alloced, request, hprintf255, COMMAND_FLAG_SOURCE_HTTP);
|
||||
JSON_ProcessCommandReply(long_str_alloced, request, (jsonCb_t)hprintf255, COMMAND_FLAG_SOURCE_HTTP);
|
||||
free(long_str_alloced);
|
||||
}
|
||||
}
|
||||
else {
|
||||
CMD_ExecuteCommand(tmpA, COMMAND_FLAG_SOURCE_HTTP);
|
||||
JSON_ProcessCommandReply(tmpA, request, hprintf255, COMMAND_FLAG_SOURCE_HTTP);
|
||||
JSON_ProcessCommandReply(tmpA, request, (jsonCb_t)hprintf255, COMMAND_FLAG_SOURCE_HTTP);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -558,7 +558,7 @@ int JSON_ProcessCommandReply(const char *cmd, void *request, jsonCb_t printer, i
|
||||
if (!wal_strnicmp(cmd, "POWER", 5)) {
|
||||
|
||||
printer(request, "{");
|
||||
http_tasmota_json_power(request, printer, flags);
|
||||
http_tasmota_json_power(request, printer);
|
||||
printer(request, "}");
|
||||
if (flags == COMMAND_FLAG_SOURCE_MQTT) {
|
||||
MQTT_PublishPrinterContentsToStat((struct obk_mqtt_publishReplyPrinter_s *)request, "RESULT");
|
||||
|
||||
Reference in New Issue
Block a user