Reduced I2C traffic while screen is muted (and XDRGTK is not in use)
This commit is contained in:
+12
-2
@@ -778,7 +778,12 @@ void loop() {
|
|||||||
|
|
||||||
if (millis() >= lowsignaltimer + 300) {
|
if (millis() >= lowsignaltimer + 300) {
|
||||||
lowsignaltimer = millis();
|
lowsignaltimer = millis();
|
||||||
if (band < BAND_GAP) radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN); else radio.getStatusAM(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) {
|
||||||
|
if (band < BAND_GAP)
|
||||||
|
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
|
else
|
||||||
|
radio.getStatusAM(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
|
}
|
||||||
if (screenmute) readRds();
|
if (screenmute) readRds();
|
||||||
if (!menu) {
|
if (!menu) {
|
||||||
doSquelch();
|
doSquelch();
|
||||||
@@ -787,7 +792,12 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (band < BAND_GAP) radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN); else radio.getStatusAM(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
if (!screenmute || (screenmute && (XDRGTKTCP || XDRGTKUSB))) {
|
||||||
|
if (band < BAND_GAP)
|
||||||
|
radio.getStatus(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
|
else
|
||||||
|
radio.getStatusAM(SStatus, USN, WAM, OStatus, BW, MStatus, CN);
|
||||||
|
}
|
||||||
if (!menu) {
|
if (!menu) {
|
||||||
doSquelch();
|
doSquelch();
|
||||||
if (millis() >= tuningtimer + 200) readRds();
|
if (millis() >= tuningtimer + 200) readRds();
|
||||||
|
|||||||
Reference in New Issue
Block a user