Added start/stop commands to the rigctl server

This commit is contained in:
AlexandreRouma
2021-11-05 19:42:49 +01:00
parent a938324886
commit 927115b50b
3 changed files with 26 additions and 9 deletions

View File

@ -613,6 +613,12 @@ private:
else if (parts[0] == "q" || parts[0] == "\\quit") {
// Will close automatically
}
else if (parts[0] == "\\start") {
gui::mainWindow.setPlayState(true);
}
else if (parts[0] == "\\stop") {
gui::mainWindow.setPlayState(false);
}
else if (parts[0] == "\\dump_state") {
std::lock_guard lck(vfoMtx);
resp =