Fixed AF/EON page when over 30 AF's
This commit is contained in:
+4
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user