Added command "J" for XDRGTK. J1 start FMDX scan, J0 stop FMDX scan

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-31 19:25:42 +02:00
parent 8b0ff327ea
commit 3542892f89
3 changed files with 23 additions and 7 deletions
+6 -1
View File
@@ -2780,7 +2780,7 @@ void ShowMemoryPos() {
void DoMemoryPosTune() {
if (spispeed == 7) tft.setSPISpeed(50);
// Process empty stations
if (IsStationEmpty()) {
memoryposstatus = MEM_DARK;
@@ -4376,6 +4376,7 @@ void cancelDXScan() {
ShowTuneMode();
ShowMemoryPos();
if (XDRGTKUSB || XDRGTKTCP) DataPrint("J0\n");
}
void endMenu() {
@@ -4473,8 +4474,11 @@ void endMenu() {
}
void startFMDXScan() {
if (afscreen || advancedRDS) BuildDisplay();
if (memorypos > scanstop || memorypos < scanstart) memorypos = scanstart;
scanmodeold = tunemode;
if (scanmem) {
tunemode = TUNE_MEM;
if (band != presets[memorypos].band) {
@@ -4501,6 +4505,7 @@ void startFMDXScan() {
}
scantimer = millis();
scandxmode = true;
if (XDRGTKUSB || XDRGTKTCP) DataPrint("J1\n");
}
void setAutoSpeedSPI() {