Fix mute during bandscan
This commit is contained in:
@@ -728,6 +728,8 @@ void XDRGTKRoutine() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '\0':
|
case '\0':
|
||||||
|
radio.setMute();
|
||||||
|
if (!screenmute) tft.drawBitmap(92, 4, Speaker, 26, 22, PrimaryColor);
|
||||||
if (!screenmute) {
|
if (!screenmute) {
|
||||||
tft.drawRoundRect(10, 30, 300, 170, 5, ActiveColor);
|
tft.drawRoundRect(10, 30, 300, 170, 5, ActiveColor);
|
||||||
tft.fillRoundRect(12, 32, 296, 166, 5, BackgroundColor);
|
tft.fillRoundRect(12, 32, 296, 166, 5, BackgroundColor);
|
||||||
@@ -754,6 +756,11 @@ void XDRGTKRoutine() {
|
|||||||
BWset = BWsetRecall;
|
BWset = BWsetRecall;
|
||||||
doBW();
|
doBW();
|
||||||
XDRScan = false;
|
XDRScan = false;
|
||||||
|
if (VolSet != 0) {
|
||||||
|
radio.setUnMute();
|
||||||
|
if (!screenmute) tft.drawBitmap(92, 4, Speaker, 26, 22, GreyoutColor);
|
||||||
|
radio.setVolume(((VolSet * 10) - 40) / 10);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user