From e9cdf162faf721795966bb95a7eb40b877f94f3d Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Thu, 29 Jul 2021 21:20:40 +0200 Subject: [PATCH] More fixes --- rigctl_server/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rigctl_server/src/main.cpp b/rigctl_server/src/main.cpp index 1bc0018..4139c6b 100644 --- a/rigctl_server/src/main.cpp +++ b/rigctl_server/src/main.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include @@ -392,6 +391,7 @@ private: if (!tuningEnabled) { resp = "RPRT 0\n"; client->write(resp.size(), (uint8_t*)resp.c_str()); + return; } // Parse frequency and assign it to the VFO @@ -551,7 +551,7 @@ private: resp = "VFO\n"; client->write(resp.size(), (uint8_t*)resp.c_str()); } - else if (parts[0] == "\\recorder_start") { + else if (parts[0] == "AOS" || parts[0] == "\\recorder_start") { std::lock_guard lck(recorderMtx); // If not controlling the recorder, return @@ -573,7 +573,7 @@ private: resp = "RPRT 0\n"; client->write(resp.size(), (uint8_t*)resp.c_str()); } - else if (parts[0] == "\\recorder_stop") { + else if (parts[0] == "LOS" || parts[0] == "\\recorder_stop") { std::lock_guard lck(recorderMtx); // If not controlling the recorder, return @@ -595,7 +595,7 @@ private: resp = "RPRT 0\n"; client->write(resp.size(), (uint8_t*)resp.c_str()); } - else if (parts[0] == "quit") { + else if (parts[0] == "q" || parts[0] == "\\quit") { // Will close automatically } else {