diff --git a/CMakeLists.txt b/CMakeLists.txt index 16b3e3a6..b4ba25a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ option(OPT_OVERRIDE_STD_FILESYSTEM "Use a local version of std::filesystem on sy option(OPT_BUILD_AIRSPY_SOURCE "Build Airspy Source Module (Dependencies: libairspy)" ON) option(OPT_BUILD_AIRSPYHF_SOURCE "Build Airspy HF+ Source Module (Dependencies: libairspyhf)" ON) option(OPT_BUILD_AUDIO_SOURCE "Build Audio Source Module (Dependencies: rtaudio)" ON) +option(OPT_BUILD_BADGESDR_SOURCE "Build BadgeSDR Source Module (Dependencies: libusb)" ON) option(OPT_BUILD_BLADERF_SOURCE "Build BladeRF Source Module (Dependencies: libbladeRF)" OFF) option(OPT_BUILD_FILE_SOURCE "Wav file source" ON) option(OPT_BUILD_HACKRF_SOURCE "Build HackRF Source Module (Dependencies: libhackrf)" ON) @@ -126,6 +127,10 @@ if (OPT_BUILD_AUDIO_SOURCE) add_subdirectory("source_modules/audio_source") endif (OPT_BUILD_AUDIO_SOURCE) +if (OPT_BUILD_BADGESDR_SOURCE) +add_subdirectory("source_modules/badgesdr_source") +endif (OPT_BUILD_BADGESDR_SOURCE) + if (OPT_BUILD_BLADERF_SOURCE) add_subdirectory("source_modules/bladerf_source") endif (OPT_BUILD_BLADERF_SOURCE) @@ -347,4 +352,6 @@ endif () # Create uninstall target configure_file(${CMAKE_SOURCE_DIR}/cmake_uninstall.cmake ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake @ONLY) -add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) \ No newline at end of file +add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) + +# Create headers target \ No newline at end of file diff --git a/source_modules/rfnm_source/src/main.cpp b/source_modules/rfnm_source/src/main.cpp index e213d47f..da431355 100644 --- a/source_modules/rfnm_source/src/main.cpp +++ b/source_modules/rfnm_source/src/main.cpp @@ -87,6 +87,7 @@ private: // If the serial was not found, select the first available serial if (!devices.keyExists(serial)) { select(devices.key(0)); + return; } // // Open the device @@ -223,9 +224,9 @@ private: SmGui::FillWidth(); SmGui::ForceSync(); if (SmGui::Combo(CONCAT("##_rfnm_dev_sel_", _this->name), &_this->devId, _this->devices.txt)) { - // TODO: Select - // TODO: Save + _this->select(_this->devices.key(_this->devId)); core::setInputSampleRate(_this->sampleRate); + // TODO: Save } if (SmGui::Combo(CONCAT("##_rfnm_sr_sel_", _this->name), &_this->srId, _this->samplerates.txt)) {