added scanner status indicator and enabled the scanner on android

pull/860/head
AlexandreRouma 2022-08-31 14:59:22 +02:00
rodzic 6d784dfe27
commit 9f0daf7d45
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -278,6 +278,7 @@ int sdrpp_main(int argc, char* argv[]) {
core::configManager.conf["modules"][modCount++] = "frequency_manager.so";
core::configManager.conf["modules"][modCount++] = "recorder.so";
core::configManager.conf["modules"][modCount++] = "rigctl_server.so";
core::configManager.conf["modules"][modCount++] = "scanner.so";
#endif
// Fix missing elements in config

Wyświetl plik

@ -102,11 +102,21 @@ private:
if (ImGui::Button("Start##scanner_start", ImVec2(menuWidth, 0))) {
_this->start();
}
ImGui::Text("Status: Idle");
}
else {
if (ImGui::Button("Stop##scanner_start", ImVec2(menuWidth, 0))) {
_this->stop();
}
if (_this->receiving) {
ImGui::TextColored(ImVec4(0, 1, 0, 1), "Status: Receiving");
}
else if (_this->tuning) {
ImGui::TextColored(ImVec4(0, 1, 1, 1), "Status: Tuning");
}
else {
ImGui::TextColored(ImVec4(1, 1, 0, 1), "Status: Scanning");
}
}
}