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

View File

@@ -962,7 +962,7 @@ void loop() {
if (wifi && !menu) {
webserver.handleClient();
if (millis() >= udplogtimer + 1000) {
if (millis() >= udplogtimer + 500) {
sendUDPlog();
udplogtimer = millis();
}

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;

View File

@@ -3089,6 +3089,8 @@ void BuildDisplay() {
xPos3 = 0;
xPos4 = 0;
xPos5 = 0;
MPold = 99;
USold = 99;
}
void MenuUpDown(bool dir) {

View File

@@ -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];