diff --git a/core/src/gui/main_window.cpp b/core/src/gui/main_window.cpp index e1abb501..4abdd0d4 100644 --- a/core/src/gui/main_window.cpp +++ b/core/src/gui/main_window.cpp @@ -299,7 +299,7 @@ void setVFO(double freq) { if (vfoBottom < bottom) { gui::waterfall.setViewOffset((BW / 2.0) - (viewBW / 2.0)); double newVFOOffset = (BW / 2.0) - (vfoBW / 2.0) - (viewBW / 10.0); - sigpath::vfoManager.setCenterOffset(gui::waterfall.selectedVFO, newVFOOffset); + sigpath::vfoManager.setOffset(gui::waterfall.selectedVFO, newVFOOffset); gui::waterfall.setCenterFrequency(freq - newVFOOffset); sigpath::sourceManager.tune(freq - newVFOOffset); return; @@ -309,7 +309,7 @@ void setVFO(double freq) { if (vfoTop > top) { gui::waterfall.setViewOffset((viewBW / 2.0) - (BW / 2.0)); double newVFOOffset = (vfoBW / 2.0) - (BW / 2.0) + (viewBW / 10.0); - sigpath::vfoManager.setCenterOffset(gui::waterfall.selectedVFO, newVFOOffset); + sigpath::vfoManager.setOffset(gui::waterfall.selectedVFO, newVFOOffset); gui::waterfall.setCenterFrequency(freq - newVFOOffset); sigpath::sourceManager.tune(freq - newVFOOffset); return; diff --git a/hackrf_source/src/main.cpp b/hackrf_source/src/main.cpp index 8bd7bba9..a4349cae 100644 --- a/hackrf_source/src/main.cpp +++ b/hackrf_source/src/main.cpp @@ -8,6 +8,8 @@ #include #include +#pragma optimize( "", off ) + #define CONCAT(a, b) ((std::string(a) + b).c_str()) SDRPP_MOD_INFO { @@ -89,7 +91,7 @@ public: for (int i = 0; i < _devList->devicecount; i++) { devList.push_back(_devList->serial_numbers[i]); - devListTxt += _devList->serial_numbers[i]; + devListTxt += (char*)(_devList->serial_numbers[i] + 16); devListTxt += '\0'; } @@ -114,7 +116,7 @@ private: spdlog::info("HackRFSourceModule '{0}': Menu Deselect!", _this->name); } - #pragma optimize( "", off ) + static void start(void* ctx) { HackRFSourceModule* _this = (HackRFSourceModule*)ctx; @@ -145,8 +147,6 @@ private: _this->running = true; spdlog::info("HackRFSourceModule '{0}': Start!", _this->name); } - - #pragma optimize( "", on ) static void stop(void* ctx) { HackRFSourceModule* _this = (HackRFSourceModule*)ctx; @@ -272,4 +272,6 @@ MOD_EXPORT void _DELETE_INSTANCE_(ModuleManager::Instance* instance) { MOD_EXPORT void _END_() { // config.disableAutoSave(); // config.save(); -} \ No newline at end of file +} + +#pragma optimize( "", on ) \ No newline at end of file