mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-03 14:12:25 -04:00
basic startup tweaks...
;)
This commit is contained in:
parent
6e20f11680
commit
1fdaa112ea
@ -86,6 +86,10 @@ bool CubicSDR::OnInit() {
|
||||
}
|
||||
|
||||
int devId = wxGetSingleChoiceIndex(wxT("Devices"), wxT("Choose Input Device"), choices);
|
||||
if (devId == -1) { // User chose to cancel
|
||||
return false;
|
||||
}
|
||||
|
||||
dev = devs[devId];
|
||||
|
||||
sdrThread->setDeviceId(devId);
|
||||
@ -93,6 +97,13 @@ bool CubicSDR::OnInit() {
|
||||
dev = devs[0];
|
||||
}
|
||||
|
||||
if (!dev) {
|
||||
wxMessageDialog *info;
|
||||
info = new wxMessageDialog(NULL, wxT("\x28\u256F\xB0\u25A1\xB0\uFF09\u256F\uFE35\x20\u253B\u2501\u253B"), wxT("RTL-SDR device not found"), wxOK | wxICON_ERROR);
|
||||
info->ShowModal();
|
||||
return false;
|
||||
}
|
||||
|
||||
t_PostSDR = new std::thread(&SDRPostThread::threadMain, sdrPostThread);
|
||||
t_SDR = new std::thread(&SDRThread::threadMain, sdrThread);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user