Merge branch 'main' into New_Model_DP_666

This commit is contained in:
Leon
2024-07-07 11:38:23 +08:00
3 changed files with 14 additions and 3 deletions
+7
View File
@@ -935,6 +935,7 @@ void loop() {
}
}
bool foundmemaf = false;
for (int x = 8750; x <= 10800; x += 10) {
if (rotary != 0 || digitalRead(BANDBUTTON) == LOW || digitalRead(MODEBUTTON) == LOW || digitalRead(BWBUTTON) == LOW || digitalRead(ROTARY_BUTTON) == LOW) break;
radio.SetFreq(x);
@@ -944,10 +945,16 @@ void loop() {
}
if (radio.rds.correctPI == radio.getBlockA()) {
frequency = x;
foundmemaf = true;
break;
}
}
if (!foundmemaf) {
frequency = freqold;
radio.SetFreq(frequency);
}
if (!screenmute) {
if (advancedRDS) {
leave = true;