Fix band width refresh bug
This commit is contained in:
+15
-16
@@ -3075,6 +3075,9 @@ void ShowOffset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ShowBW() {
|
void ShowBW() {
|
||||||
|
if (millis() >= bwupdatetimer + TIMER_BW_TIMER) { bwupdatetimer = millis(); }
|
||||||
|
else { return; }
|
||||||
|
|
||||||
if (BW != BWOld || BWreset == true) {
|
if (BW != BWOld || BWreset == true) {
|
||||||
tft.setFreeFont(FONT14);
|
tft.setFreeFont(FONT14);
|
||||||
tft.setTextColor(TFT_BLACK);
|
tft.setTextColor(TFT_BLACK);
|
||||||
@@ -3203,24 +3206,20 @@ void doSquelch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void updateBW() {
|
void updateBW() {
|
||||||
if (millis() >= bwupdatetimer + TIMER_BW_TIMER) {
|
tft.setFreeFont(FONT7);
|
||||||
bwupdatetimer = millis();
|
if (BWset == 0) {
|
||||||
|
if (screenmute == false) {
|
||||||
tft.setFreeFont(FONT7);
|
tft.drawRoundRect(249, 35, 68, 20, 5, TFT_WHITE);
|
||||||
if (BWset == 0) {
|
tft.setTextColor(TFT_WHITE);
|
||||||
if (screenmute == false) {
|
}
|
||||||
tft.drawRoundRect(249, 35, 68, 20, 5, TFT_WHITE);
|
radio.setFMABandw();
|
||||||
tft.setTextColor(TFT_WHITE);
|
} else {
|
||||||
}
|
if (screenmute == false) {
|
||||||
radio.setFMABandw();
|
tft.drawRoundRect(249, 35, 68, 20, 5, TFT_GREYOUT);
|
||||||
} else {
|
tft.setTextColor(TFT_GREYOUT);
|
||||||
if (screenmute == false) {
|
|
||||||
tft.drawRoundRect(249, 35, 68, 20, 5, TFT_GREYOUT);
|
|
||||||
tft.setTextColor(TFT_GREYOUT);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
tft.drawCentreString("AUTO BW", 282, 33, GFXFF);
|
|
||||||
}
|
}
|
||||||
|
tft.drawCentreString("AUTO BW", 282, 33, GFXFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateiMS() {
|
void updateiMS() {
|
||||||
|
|||||||
Reference in New Issue
Block a user