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:
masj-mobica
2024-02-23 08:45:28 +01:00
committed by GitHub
parent 8eaf72e2ea
commit 231b87aea8
8 changed files with 20 additions and 13 deletions

View File

@ -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)) {