Fix peakhold at edge doesn't refresh
This commit is contained in:
+3
-1
@@ -3658,11 +3658,13 @@ 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) {
|
||||||
|
if (peakholdold <= DisplayedSegments || peakholdold >= 93) {
|
||||||
tft.fillRect(peakHoldPosition, 133, 2, 6, GreyoutColor);
|
tft.fillRect(peakHoldPosition, 133, 2, 6, GreyoutColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void showAutoSquelch(bool mode) {
|
void showAutoSquelch(bool mode) {
|
||||||
if (language == LANGUAGE_CHS) SquelchSprite.loadFont(FONT16_CHS); else SquelchSprite.loadFont(FONT16);
|
if (language == LANGUAGE_CHS) SquelchSprite.loadFont(FONT16_CHS); else SquelchSprite.loadFont(FONT16);
|
||||||
|
|||||||
Reference in New Issue
Block a user