UDP protocol update

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-02-11 19:22:15 +01:00
parent c1cdd0c1a5
commit 0e47b2b1b6
4 changed files with 45 additions and 1 deletions
+40
View File
@@ -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;