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 {