mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 05:25:25 +00:00
Warnings in OpenBK7231T_App fixed. (#1098)
* Warnings in AppT fixed. * Remove ota include file added by mistake in drv_sm2235.
This commit is contained in:
@ -754,6 +754,7 @@ int http_obk_json_dps(int id, void* request, jsonCb_t printer);
|
||||
|
||||
int JSON_ProcessCommandReply(const char* cmd, const char* arg, void* request, jsonCb_t printer, int flags) {
|
||||
int i;
|
||||
long int* pAllGenericFlags = (long int*)&g_cfg.genericFlags;
|
||||
|
||||
if (!wal_strnicmp(cmd, "POWER", 5)) {
|
||||
|
||||
@ -1029,7 +1030,7 @@ int JSON_ProcessCommandReply(const char* cmd, const char* arg, void* request, js
|
||||
}
|
||||
else if (!wal_strnicmp(cmd, "Flags", 5)) {
|
||||
printer(request, "{");
|
||||
printer(request, "\"Flags\":\"%ld\"", *((long int*)&g_cfg.genericFlags));
|
||||
printer(request, "\"Flags\":\"%ld\"", *pAllGenericFlags);
|
||||
printer(request, "}");
|
||||
}
|
||||
else if (!wal_strnicmp(cmd, "Ch", 2)) {
|
||||
|
||||
Reference in New Issue
Block a user