When in screenmute quality data was not polled, so AF could not work correct.
This commit is contained in:
+4
-4
@@ -795,7 +795,7 @@ void loop() {
|
|||||||
|
|
||||||
if (millis() >= lowsignaltimer + 300) {
|
if (millis() >= lowsignaltimer + 300) {
|
||||||
lowsignaltimer = millis();
|
lowsignaltimer = millis();
|
||||||
if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) {
|
if (af || (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB)))) {
|
||||||
if (band < BAND_GAP) {
|
if (band < BAND_GAP) {
|
||||||
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
} else {
|
} else {
|
||||||
@@ -810,7 +810,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) {
|
if (af || (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB)))) {
|
||||||
if (band < BAND_GAP) {
|
if (band < BAND_GAP) {
|
||||||
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
} else {
|
} else {
|
||||||
@@ -2256,7 +2256,7 @@ void ShowFreq(int mode) {
|
|||||||
Udp.endPacket();
|
Udp.endPacket();
|
||||||
}
|
}
|
||||||
tuningtimer = millis();
|
tuningtimer = millis();
|
||||||
|
|
||||||
if (!rdsflagreset && !screenmute && !afscreen) {
|
if (!rdsflagreset && !screenmute && !afscreen) {
|
||||||
ShowRDSLogo(false);
|
ShowRDSLogo(false);
|
||||||
sprite.fillSprite(BackgroundColor);
|
sprite.fillSprite(BackgroundColor);
|
||||||
@@ -2889,7 +2889,7 @@ void ShowBattery() {
|
|||||||
|
|
||||||
uint16_t v = analogRead(BATTERY_PIN);
|
uint16_t v = analogRead(BATTERY_PIN);
|
||||||
battery = map(constrain(v, BAT_LEVEL_EMPTY, BAT_LEVEL_FULL), BAT_LEVEL_EMPTY, BAT_LEVEL_FULL, 0, BAT_LEVEL_STAGE);
|
battery = map(constrain(v, BAT_LEVEL_EMPTY, BAT_LEVEL_FULL), BAT_LEVEL_EMPTY, BAT_LEVEL_FULL, 0, BAT_LEVEL_STAGE);
|
||||||
|
|
||||||
if (batteryold != battery) {
|
if (batteryold != battery) {
|
||||||
if (!wifi && batterydetect) {
|
if (!wifi && batterydetect) {
|
||||||
if (battery == 0) {
|
if (battery == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user