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