Added auto squelch toggle (H3) to XDRGTK protocol

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-06-05 19:21:24 +02:00
parent c1ced625df
commit b9498ed44a
+15 -7
View File
@@ -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;