plug obk-specific commands to the interface

This commit is contained in:
openshwprojects
2023-02-19 12:05:32 +01:00
parent 624c8c4747
commit 72e6fec1e3

View File

@ -693,6 +693,14 @@ int JSON_ProcessCommandReply(const char *cmd, const char *arg, void *request, js
}
}
}
else if (!wal_strnicmp(cmd, "GetChannel", 10) || !wal_strnicmp(cmd, "SetChannel", 10) || !wal_strnicmp(cmd, "AddChannel", 10)) {
// OBK-specific
int i = atoi(arg);
i = CHANNEL_Get(i);
printer(request, "%i",i);
}
return 0;
}