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

View File

@@ -489,14 +489,22 @@ void XDRGTKRoutine() {
break;
case 'I':
byte fmscansenstemp;
byte fmscansenstemp;
fmscansenstemp = atol(buff + 1);
if (fmscansenstemp > 0 && fmscansenstemp < 31) {
fmscansens = fmscansenstemp;
EEPROM.writeByte(EE_BYTE_FMSCANSENS, fmscansens);
EEPROM.commit();
}
DataPrint("I" + String(fmscansens) + "\n");
fmscansens = fmscansenstemp;
EEPROM.writeByte(EE_BYTE_FMSCANSENS, fmscansens);
EEPROM.commit();
}
DataPrint("I" + String(fmscansens) + "\n");
break;
case 'J':
byte scandxtemp;
scandxtemp = atol(buff + 1);
if (scandxtemp == 0 && scandxmode) cancelDXScan();
if (scandxtemp == 1 && !scandxmode) startFMDXScan();
DataPrint("J" + String(scandxtemp) + "\n");
break;
case 'M':

View File

@@ -22,6 +22,7 @@ extern bool menu;
extern bool RDSSPYTCP;
extern bool RDSSPYUSB;
extern bool RDSstatus;
extern bool scandxmode;
extern bool screenmute;
extern bool seek;
extern bool setupmode;
@@ -138,5 +139,7 @@ extern void updateEQ();
extern void tftPrint(int8_t offset, const String & text, int16_t x, int16_t y, int color, int smoothcolor, uint8_t fontsize);
extern void showAutoSquelch(bool mode);
extern void ShowStepSize();
extern void startFMDXScan();
extern void cancelDXScan();
#endif