mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-20 22:12:26 -04:00
Indicate device selection
This commit is contained in:
parent
328ea29e15
commit
9217ea6e19
@ -207,7 +207,7 @@ AppFrame::AppFrame() :
|
|||||||
devName.append(" (In Use?)");
|
devName.append(" (In Use?)");
|
||||||
}
|
}
|
||||||
|
|
||||||
menu->Append(wxID_DEVICE_ID+p, devName);
|
menu->AppendRadioItem(wxID_DEVICE_ID+p, devName)->Check(wxGetApp().getDevice() == p);
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,3 +200,7 @@ void CubicSDR::setDevice(int deviceId) {
|
|||||||
command.llong_value = deviceId;
|
command.llong_value = deviceId;
|
||||||
threadCmdQueueSDR->push(command);
|
threadCmdQueueSDR->push(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CubicSDR::getDevice() {
|
||||||
|
return sdrThread->getDeviceId();
|
||||||
|
}
|
||||||
|
@ -40,6 +40,7 @@ public:
|
|||||||
|
|
||||||
std::vector<SDRDeviceInfo *> *getDevices();
|
std::vector<SDRDeviceInfo *> *getDevices();
|
||||||
void setDevice(int deviceId);
|
void setDevice(int deviceId);
|
||||||
|
int getDevice();
|
||||||
|
|
||||||
DemodulatorThreadOutputQueue* getAudioVisualQueue();
|
DemodulatorThreadOutputQueue* getAudioVisualQueue();
|
||||||
DemodulatorThreadInputQueue* getIQVisualQueue();
|
DemodulatorThreadInputQueue* getIQVisualQueue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user