Fixed UI and frequency manager bug

This commit is contained in:
Ryzerth
2021-07-02 18:12:56 +02:00
parent 7d720e4d6f
commit 4a2774367f
2 changed files with 29 additions and 25 deletions

View File

@ -167,11 +167,12 @@ private:
static void moduleInterfaceHandler(int code, void* in, void* out, void* ctx) {
RadioModule* _this = (RadioModule*)ctx;
if (code == RADIO_IFACE_CMD_GET_MODE) {
*(int*)out = _this->demodId;
int* _out = (int*)out;
*_out = _this->demodId;
}
else if (code == RADIO_IFACE_CMD_SET_MODE) {
int in = *(int*)in;
if (in != _this->demodId) { _this->selectDemodById(in); }
int* _in = (int*)in;
if (*_in != _this->demodId) { _this->selectDemodById(*_in); }
}
}