From 68a243d1761d7f767f53ded2044cd1e8bae65ded Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Mon, 23 Oct 2023 19:14:53 +0200 Subject: [PATCH] Fixed EON list overflow --- src/rds.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rds.cpp b/src/rds.cpp index 2ffb76f..0ecb11b 100644 --- a/src/rds.cpp +++ b/src/rds.cpp @@ -547,7 +547,7 @@ void ShowAFEON() { hasafold = true; } - if (radio.af_counter > 30 || radio.eon_counter > 10) { + if (radio.af_counter > 30 || radio.eon_counter > 9) { if (!afpage) { afpage = true; afpagenr = 1; @@ -610,7 +610,7 @@ void ShowAFEON() { tftPrint(1, String(radio.eon[i + y].mappedfreq / 100) + "." + String((radio.eon[i + y].mappedfreq % 100) / 10), 316, 48 + (15 * i), PrimaryColor, PrimaryColorSmooth, 16); mappedfreqold[i + y] = radio.eon[i + y].mappedfreq; } - if (i == 10) i = 254; + if (i == 9) i = 254; } } }