You've already forked TEF6686_ESP32
Fix peakhold at edge doesn't refresh
This commit is contained in:
@@ -3343,7 +3343,7 @@ void ShowSignalLevel() {
|
|||||||
if (USprint != USold) {
|
if (USprint != USold) {
|
||||||
tftReplace(1, String(USold), (band < BAND_GAP ? String(USprint) : "--"), 318, 145, PrimaryColor, PrimaryColorSmooth, BackgroundColor, 16);
|
tftReplace(1, String(USold), (band < BAND_GAP ? String(USprint) : "--"), 318, 145, PrimaryColor, PrimaryColorSmooth, BackgroundColor, 16);
|
||||||
USold = USprint;
|
USold = USprint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3658,8 +3658,10 @@ void ShowModLevel() {
|
|||||||
tft.fillRect(peakHoldPosition, 133, 2, 6, (MStatus > 80) ? ModBarSignificantColor : PrimaryColor);
|
tft.fillRect(peakHoldPosition, 133, 2, 6, (MStatus > 80) ? ModBarSignificantColor : PrimaryColor);
|
||||||
|
|
||||||
// Erase peak hold indicator if it has decayed
|
// Erase peak hold indicator if it has decayed
|
||||||
if (millis() - peakholdmillis >= 1000 && peakholdold <= DisplayedSegments) {
|
if (millis() - peakholdmillis >= 1000) {
|
||||||
tft.fillRect(peakHoldPosition, 133, 2, 6, GreyoutColor);
|
if (peakholdold <= DisplayedSegments || peakholdold >= 93) {
|
||||||
|
tft.fillRect(peakHoldPosition, 133, 2, 6, GreyoutColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4171,10 +4173,10 @@ void ShowBattery() {
|
|||||||
} else {
|
} else {
|
||||||
tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
|
tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
|
||||||
}
|
}
|
||||||
// } else {
|
// } else {
|
||||||
// tft.drawRoundRect(277, 6, 37, 20, 2, GreyoutColor);
|
// tft.drawRoundRect(277, 6, 37, 20, 2, GreyoutColor);
|
||||||
// tft.fillRoundRect(313, 13, 4, 6, 2, GreyoutColor);
|
// tft.fillRoundRect(313, 13, 4, 6, 2, GreyoutColor);
|
||||||
// tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
|
// tft.fillRoundRect(279, 8, 33, 16, 2, BackgroundColor);
|
||||||
}
|
}
|
||||||
batteryold = batteryprobe;
|
batteryold = batteryprobe;
|
||||||
batteryVold = 0;
|
batteryVold = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user