mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 18:57:39 +01:00
Fixed bug
This commit is contained in:
parent
8305750016
commit
2a22a125bb
@ -163,6 +163,10 @@ private:
|
||||
if (code == RADIO_IFACE_CMD_GET_MODE) {
|
||||
*(int*)out = _this->demodId;
|
||||
}
|
||||
else if (code == RADIO_IFACE_CMD_SET_MODE) {
|
||||
int in = *(int*)in;
|
||||
if (in != _this->demodId) { _this->selectDemodById(in); }
|
||||
}
|
||||
}
|
||||
|
||||
void selectDemod(Demodulator* demod) {
|
||||
|
@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
enum {
|
||||
RADIO_IFACE_CMD_GET_MODE
|
||||
RADIO_IFACE_CMD_GET_MODE,
|
||||
RADIO_IFACE_CMD_SET_MODE
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Loading…
Reference in New Issue
Block a user