From 6cb19b7dddd8497cd7e2cedb8e4fd07b792c3dbd Mon Sep 17 00:00:00 2001 From: Nunu Date: Wed, 3 Jan 2024 16:53:05 +0100 Subject: [PATCH] Fix screen glitching on transmit. --- app/generic.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/generic.c b/app/generic.c index 7fd6faed9..3daacf536 100644 --- a/app/generic.c +++ b/app/generic.c @@ -36,6 +36,7 @@ #include "settings.h" #include "ui/inputbox.h" #include "ui/ui.h" +#include "driver/bk4819.h" void GENERIC_Key_F(bool bKeyPressed, bool bKeyHeld) { @@ -156,7 +157,8 @@ void GENERIC_Key_PTT(bool bKeyPressed) goto cancel_tx; } - + // set maximum squelch to protect the screen from glitching + BK4819_SetupSquelch(255, 255, 127, 127, 255, 255); #ifdef ENABLE_FMRADIO if (gFM_ScanState != FM_SCAN_OFF) @@ -234,4 +236,7 @@ void GENERIC_Key_PTT(bool bKeyPressed) gRequestDisplayScreen = DISPLAY_MAIN; gUpdateStatus = true; gUpdateDisplay = true; + + //done tx - restore squelch here + gVfoConfigureMode = VFO_CONFIGURE_RELOAD; }