From 0b7a7ca193c3d9d29318b801cdb764ba4efa4f75 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Fri, 16 Jul 2021 03:11:49 +0200 Subject: [PATCH] slight bugfix --- core/src/gui/tuner.cpp | 7 +------ readme.md | 1 + rigctl_server/src/main.cpp | 6 +++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/gui/tuner.cpp b/core/src/gui/tuner.cpp index b98d3a5e..6ea4689a 100644 --- a/core/src/gui/tuner.cpp +++ b/core/src/gui/tuner.cpp @@ -11,6 +11,7 @@ namespace tuner { gui::waterfall.setViewOffset((BW / 2.0) - (viewBW / 2.0)); gui::waterfall.setCenterFrequency(freq); gui::waterfall.setViewOffset(0); + gui::freqSelect.setFrequency(freq); sigpath::sourceManager.tune(freq); } @@ -22,12 +23,6 @@ namespace tuner { double viewBW = gui::waterfall.getViewBandwidth(); double BW = gui::waterfall.getBandwidth(); - if (vfoName == "") { - gui::waterfall.setViewOffset((BW / 2.0) - (viewBW / 2.0)); - gui::waterfall.setCenterFrequency(freq); - sigpath::sourceManager.tune(freq); - return; - } ImGui::WaterfallVFO* vfo = gui::waterfall.vfos[vfoName]; diff --git a/readme.md b/readme.md index a6e6a204..9c98705e 100644 --- a/readme.md +++ b/readme.md @@ -304,6 +304,7 @@ Modules in beta are still included in releases for the most part but not enabled | discord_integration | Working | - | OPT_BUILD_DISCORD_PRESENCE | ✅ | ✅ | ⛔ | | frequency_manager | Beta | - | OPT_BUILD_FREQUENCY_MANAGER | ✅ | ✅ | ✅ | | recorder | Working | - | OPT_BUILD_RECORDER | ✅ | ✅ | ✅ | +| rigctl_server | Unfinished | - | OPT_BUILD_RIGCTL_SERVER | ✅ | ✅ | ⛔ | # Troubleshooting diff --git a/rigctl_server/src/main.cpp b/rigctl_server/src/main.cpp index 37e6a273..33441403 100644 --- a/rigctl_server/src/main.cpp +++ b/rigctl_server/src/main.cpp @@ -174,16 +174,20 @@ private: } char buf[128]; - sprintf(buf, "%" PRIu64, (uint64_t)freq); + sprintf(buf, "%" PRIu64 "\n", (uint64_t)freq); client->write(strlen(buf), (uint8_t*)buf); } else if (parts[0] == "AOS") { // TODO: Start Recorder core::modComManager.callInterface("Recorder", RECORDER_IFACE_CMD_START, NULL, NULL); + resp = "RPRT 0\n"; + client->write(resp.size(), (uint8_t*)resp.c_str()); } else if (parts[0] == "LOS") { // TODO: Stop Recorder core::modComManager.callInterface("Recorder", RECORDER_IFACE_CMD_STOP, NULL, NULL); + resp = "RPRT 0\n"; + client->write(resp.size(), (uint8_t*)resp.c_str()); } else if (parts[0] == "q") { // Will close automatically