Fix peakhold at edge doesn't refresh

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-02-10 12:05:10 +01:00
parent 7b2ba01fb8
commit e58f7c2dc6
+7 -5
View File
@@ -3658,10 +3658,12 @@ void ShowModLevel() {
tft.fillRect(peakHoldPosition, 133, 2, 6, (MStatus > 80) ? ModBarSignificantColor : PrimaryColor);
// Erase peak hold indicator if it has decayed
if (millis() - peakholdmillis >= 1000 && peakholdold <= DisplayedSegments) {
if (millis() - peakholdmillis >= 1000) {
if (peakholdold <= DisplayedSegments || peakholdold >= 93) {
tft.fillRect(peakHoldPosition, 133, 2, 6, GreyoutColor);
}
}
}
}
void showAutoSquelch(bool mode) {
@@ -4171,10 +4173,10 @@ void ShowBattery() {
} else {
tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
}
// } else {
// tft.drawRoundRect(277, 6, 37, 20, 2, GreyoutColor);
// tft.fillRoundRect(313, 13, 4, 6, 2, GreyoutColor);
// tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
// } else {
// tft.drawRoundRect(277, 6, 37, 20, 2, GreyoutColor);
// tft.fillRoundRect(313, 13, 4, 6, 2, GreyoutColor);
// tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
}
batteryold = batteryprobe;
batteryVold = 0;