diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index af0a244..be51460 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -962,7 +962,7 @@ void loop() { if (wifi && !menu) { webserver.handleClient(); - if (millis() >= udplogtimer + 1000) { + if (millis() >= udplogtimer + 500) { sendUDPlog(); udplogtimer = millis(); } diff --git a/src/comms.cpp b/src/comms.cpp index 5112cff..6bef4e0 100644 --- a/src/comms.cpp +++ b/src/comms.cpp @@ -36,6 +36,46 @@ void Communication() { ShowFreq(0); break; + case '>': + case '<': + if (command == '>') direction = true; else direction = false; + Seek(direction); + ShowFreq(0); + break; + + case 'T': + uint16_t freqtemp; + freqtemp = packet.substring(2).toInt(); + if (BAND_FM) freqtemp -= ConverterSet * 1000; + if (seek) seek = false; + radio.clearRDS(fullsearchrds); + + if (freqtemp >= LowEdgeOIRTSet && freqtemp <= HighEdgeOIRTSet) { + frequency_OIRT = freqtemp; + if (afscreen || advancedRDS) { + BuildDisplay(); + SelectBand(); + } + if (band != BAND_OIRT) { + band = BAND_OIRT; + SelectBand(); + } + radio.SetFreq(frequency_OIRT); + } else if (freqtemp >= (TEF == 205 ? 6400 : 6500) && freqtemp <= 10800) { + frequency = freqtemp; + if (afscreen || advancedRDS) { + BuildDisplay(); + SelectBand(); + } + if (band != BAND_FM) { + band = BAND_FM; + SelectBand(); + } + radio.SetFreq(frequency); + } + ShowFreq(0); + break; + case 'S': if (!scandxmode) startFMDXScan(); break; case 'E': if (scandxmode) cancelDXScan(); break; diff --git a/src/gui.cpp b/src/gui.cpp index 71749ce..dbce2dd 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -3089,6 +3089,8 @@ void BuildDisplay() { xPos3 = 0; xPos4 = 0; xPos5 = 0; + MPold = 99; + USold = 99; } void MenuUpDown(bool dir) { diff --git a/src/gui.h b/src/gui.h index 3ef4ed7..ad75d45 100644 --- a/src/gui.h +++ b/src/gui.h @@ -183,6 +183,8 @@ extern int xPos5; extern int16_t SStatus; extern int8_t LevelOffset; extern int8_t LowLevelSet; +extern int8_t MPold; +extern int8_t USold; extern int8_t NTPoffset; extern int8_t VolSet; extern String eonpsold[20];