More fixes

This commit is contained in:
AlexandreRouma 2021-07-29 21:20:40 +02:00 committed by GitHub
parent d84273a0db
commit e9cdf162fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@
#include <gui/style.h> #include <gui/style.h>
#include <signal_path/signal_path.h> #include <signal_path/signal_path.h>
#include <core.h> #include <core.h>
#include <radio_interface.h>
#include <recorder_interface.h> #include <recorder_interface.h>
#include <meteor_demodulator_interface.h> #include <meteor_demodulator_interface.h>
#include <config.h> #include <config.h>
@ -392,6 +391,7 @@ private:
if (!tuningEnabled) { if (!tuningEnabled) {
resp = "RPRT 0\n"; resp = "RPRT 0\n";
client->write(resp.size(), (uint8_t*)resp.c_str()); client->write(resp.size(), (uint8_t*)resp.c_str());
return;
} }
// Parse frequency and assign it to the VFO // Parse frequency and assign it to the VFO
@ -551,7 +551,7 @@ private:
resp = "VFO\n"; resp = "VFO\n";
client->write(resp.size(), (uint8_t*)resp.c_str()); 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); std::lock_guard lck(recorderMtx);
// If not controlling the recorder, return // If not controlling the recorder, return
@ -573,7 +573,7 @@ private:
resp = "RPRT 0\n"; resp = "RPRT 0\n";
client->write(resp.size(), (uint8_t*)resp.c_str()); 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); std::lock_guard lck(recorderMtx);
// If not controlling the recorder, return // If not controlling the recorder, return
@ -595,7 +595,7 @@ private:
resp = "RPRT 0\n"; resp = "RPRT 0\n";
client->write(resp.size(), (uint8_t*)resp.c_str()); 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 // Will close automatically
} }
else { else {