Added auto squelch

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-08 23:03:18 +02:00
parent 18f0597cee
commit d1853c2340
6 changed files with 195 additions and 95 deletions

View File

@@ -444,6 +444,30 @@ void XDRGTKRoutine() {
updateEQ();
break;
case 'H':
byte autosq_read;
autosq_read = atol(buff + 1);
if (autosq_read == 0) {
autosquelch = false;
DataPrint("H0\n");
if (!screenmute) {
if (!usesquelch) {
tftPrint(-1, "SQ:", 212, 145, BackgroundColor, BackgroundColor, 16);
showAutoSquelch(0);
} else {
Squelch = -150;
}
}
} else {
autosquelch = true;
DataPrint("H1\n");
if (!screenmute) {
tftPrint(-1, "SQ:", 212, 145, ActiveColor, ActiveColorSmooth, 16);
showAutoSquelch(1);
}
}
break;
case 'M':
byte XDRband;
XDRband = atol(buff + 1);