diff --git a/.gitignore b/.gitignore index 18333cf..ad82be2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,10 @@ +CMakeCache.txt +CMakeFiles/ +Makefile +cmake_install.cmake +compile_commands.json +nbproject/ +x64/ cmake_build/ cmake_build_msvc/ dist/ diff --git a/src/CubicSDR.cpp b/src/CubicSDR.cpp index 25fb29f..51c1434 100644 --- a/src/CubicSDR.cpp +++ b/src/CubicSDR.cpp @@ -86,10 +86,11 @@ bool CubicSDR::OnInit() { std::cout << "Chosen: " << devId << std::endl; sdrThread->setDeviceId(devId); - } else { - OnMessage("no devices found!", "warning"); } - + else if(devs.size() == 0) { + wxGetApp().OnMessage("No devices found!", "warning"); + } + t_PostSDR = new std::thread(&SDRPostThread::threadMain, sdrPostThread); t_SDR = new std::thread(&SDRThread::threadMain, sdrThread);