Added auto squelch toggle (H3) to XDRGTK protocol
This commit is contained in:
+15
-7
@@ -470,6 +470,21 @@ void XDRGTKRoutine() {
|
||||
if (autosq_read == 0) {
|
||||
autosquelch = false;
|
||||
DataPrint("H0\n");
|
||||
} else if (autosq_read == 1) {
|
||||
autosquelch = true;
|
||||
DataPrint("H1\n");
|
||||
} else {
|
||||
autosquelch = !autosquelch;
|
||||
}
|
||||
|
||||
if (autosquelch) {
|
||||
DataPrint("H1\n");
|
||||
if (!screenmute) {
|
||||
tftPrint(-1, "SQ:", 212, 145, ActiveColor, ActiveColorSmooth, 16);
|
||||
showAutoSquelch(1);
|
||||
}
|
||||
} else {
|
||||
DataPrint("H0\n");
|
||||
if (!screenmute) {
|
||||
if (!usesquelch) {
|
||||
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
|
||||
@@ -478,13 +493,6 @@ void XDRGTKRoutine() {
|
||||
Squelch = -150;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
autosquelch = true;
|
||||
DataPrint("H1\n");
|
||||
if (!screenmute) {
|
||||
tftPrint(-1, "SQ:", 212, 145, ActiveColor, ActiveColorSmooth, 16);
|
||||
showAutoSquelch(1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user