Bugfix: AF should not work when in menu or in afpage
This commit is contained in:
+3
-1
@@ -623,6 +623,7 @@ void loop() {
|
||||
if (power == true) {
|
||||
Communication();
|
||||
|
||||
if (!menu && !afpage) {
|
||||
if (band == BAND_FM && af && radio.rds.correctPI != 0) {
|
||||
if ((aftest && millis() >= aftimer + 3000) || ((USN > 250 || WAM > 250) && millis() >= aftimer + 1000)) {
|
||||
aftimer = millis();
|
||||
@@ -647,6 +648,7 @@ void loop() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (seek == true) Seek(direction);
|
||||
|
||||
@@ -4262,7 +4264,7 @@ void ShowFreq(int mode) {
|
||||
Udp.beginPacket(remoteip, 9030);
|
||||
Udp.print("from=TEF tuner;freq=");
|
||||
if (band > BAND_GAP) Udp.print(String(frequency_AM) + "000;ClearRDS=1");
|
||||
else Udp.print(String(band == BAND_FM ? frequency: frequency_OIRT) + "0000;ClearRDS=1");
|
||||
else Udp.print(String(band == BAND_FM ? frequency : frequency_OIRT) + "0000;ClearRDS=1");
|
||||
Udp.endPacket();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user