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) {
|
if (autosq_read == 0) {
|
||||||
autosquelch = false;
|
autosquelch = false;
|
||||||
DataPrint("H0\n");
|
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 (!screenmute) {
|
||||||
if (!usesquelch) {
|
if (!usesquelch) {
|
||||||
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
|
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
|
||||||
@@ -478,13 +493,6 @@ void XDRGTKRoutine() {
|
|||||||
Squelch = -150;
|
Squelch = -150;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
autosquelch = true;
|
|
||||||
DataPrint("H1\n");
|
|
||||||
if (!screenmute) {
|
|
||||||
tftPrint(-1, "SQ:", 212, 145, ActiveColor, ActiveColorSmooth, 16);
|
|
||||||
showAutoSquelch(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user