Speed improvement and GUI bugfix

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-10-08 19:10:51 +02:00
parent 1492195dcd
commit 32fac40ccd
4 changed files with 14 additions and 14 deletions
+13 -6
View File
@@ -2243,11 +2243,6 @@ void ShowFreq(int mode) {
clearrds = true;
ECCold = 254;
licold = 254;
sprite.fillSprite(BackgroundColor);
sprite2.fillSprite(BackgroundColor);
if (!screenmute) {
if (advancedRDS) sprite2.pushSprite(35, 220); else if (!afscreen) sprite.pushSprite(38, 220);
}
if (wifi) {
Udp.beginPacket(remoteip, 9030);
@@ -2261,8 +2256,20 @@ void ShowFreq(int mode) {
Udp.endPacket();
}
tuningtimer = millis();
if (!rdsflagreset) {
if (!rdsflagreset && !screenmute && !afscreen) {
ShowRDSLogo(false);
sprite.fillSprite(BackgroundColor);
sprite2.fillSprite(BackgroundColor);
if (!advancedRDS) {
tft.fillCircle(314, 223, 2, GreyoutColor);
tft.fillCircle(314, 234, 2, GreyoutColor);
sprite.pushSprite(38, 220);
} else {
tft.fillCircle(203, 223, 2, GreyoutColor);
tft.fillCircle(203, 234, 2, GreyoutColor);
sprite2.pushSprite(35, 220);
}
rdsflagreset = true;
}
}
-1
View File
@@ -738,7 +738,6 @@ void TEF6686::readRDS(byte showrdserrors)
rds.hour += rds.offset;
rds.hour = (((byte)rds.hour + 24) % 24);
rds.hasCT = true;
Serial.println(rds.offset);
}
} break;
+1
View File
@@ -328,6 +328,7 @@ void BuildAFScreen() {
tft.drawLine(168, 30, 168, 199, FrameColor);
tft.drawLine(53, 30, 53, 0, FrameColor);
tft.drawLine(89, 30, 89, 0, FrameColor);
tft.drawLine(120, 30, 120, 0, FrameColor);
tft.drawLine(158, 30, 158, 0, FrameColor);
tft.drawLine(248, 30, 248, 0, FrameColor);
tftPrint(-1, "kHz", 203, 4, ActiveColor, ActiveColorSmooth, 28);
-7
View File
@@ -596,13 +596,6 @@ void readRds() {
tft.fillCircle(162, 41, 5, SignificantColor);
tft.fillCircle(200, 41, 5, SignificantColor);
}
if (!advancedRDS) {
tft.fillCircle(314, 223, 2, GreyoutColor);
tft.fillCircle(314, 234, 2, GreyoutColor);
} else {
tft.fillCircle(203, 223, 2, GreyoutColor);
tft.fillCircle(203, 234, 2, GreyoutColor);
}
clearrds = false;
}
if (radio.rds.correctPI != 0) dropout = true;