Skip to content

Commit

Permalink
Fix screen glitching on transmit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsss655 committed Jan 3, 2024
1 parent 17c055a commit 6cb19b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

0 comments on commit 6cb19b7

Please sign in to comment.