Fixed AF/EON page when over 30 AF's

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-30 21:14:29 +01:00
parent 97fcaf0801
commit dbe2d38a79
+4 -2
View File
@@ -594,12 +594,13 @@ void ShowAFEON() {
if (radio.rds.hasAF) {
if (!hasafold) {
if (!screenmute) tftPrint(-1, myLanguage[language][87], 6, 54, BackgroundColor, BackgroundColor, 16);
if (!screenmute) tftPrint(-1, myLanguage[language][87], 6, 48, BackgroundColor, BackgroundColor, 16);
if (!screenmute) tftPrint(-1, "AF:", 4, 32, ActiveColor, ActiveColorSmooth, 16);
hasafold = true;
}
if (af_counterold != radio.af_updatecounter && (afpage != 2 && radio.af_counter < 31)) {
if (!(afpage && afpagenr == 2 && radio.af_updatecounter < 30)) {
if (af_counterold != radio.af_updatecounter) {
tft.fillRect(2, 48, 166, 150, BackgroundColor);
for (byte i = 0; i < radio.af_counter; i++) {
byte x = i - (afpagenr == 2 ? 30 : 0);
@@ -621,6 +622,7 @@ void ShowAFEON() {
af_counterold = radio.af_updatecounter;
}
}
}
if (radio.rds.hasEON) {
if (!haseonold && !screenmute) {