mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-10 02:35:40 +00:00
led_map interface, allow getting command results in old post command api
This commit is contained in:
@ -879,7 +879,17 @@ int JSON_ProcessCommandReply(const char* cmd, const char* arg, void* request, js
|
||||
printer(request, "\"SSID1\":\"%s\"", CFG_GetWiFiSSID());
|
||||
printer(request, "}");
|
||||
}
|
||||
|
||||
else if (!wal_strnicmp(cmd, "LED_Map", 7)) {
|
||||
printer(request, "{");
|
||||
printer(request, "\"Map\":[%i,%i,%i,%i,%i]",
|
||||
(int)g_cfg.ledRemap.r, (int)g_cfg.ledRemap.g, (int)g_cfg.ledRemap.b, (int)g_cfg.ledRemap.c, (int)g_cfg.ledRemap.w);
|
||||
printer(request, "}");
|
||||
}
|
||||
else {
|
||||
printer(request, "{");
|
||||
printer(request, "}");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user