0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

Fix PTT bug

This commit is contained in:
OneOfEleven
2023-10-10 00:56:55 +01:00
parent 79dae75556
commit 023e7b6ee3
8 changed files with 18 additions and 22 deletions

View File

@ -25,6 +25,7 @@
#include "app/scanner.h"
#include "audio.h"
#include "driver/keyboard.h"
#include "driver/uart.h"
#include "dtmf.h"
#include "external/printf/printf.h"
#include "functions.h"
@ -159,6 +160,10 @@ void GENERIC_Key_PTT(bool key_pressed)
// PTT pressed
#if defined(ENABLE_UART) && defined(ENABLE_UART_DEBUG)
// UART_printf("gene key 1 %u\r\n", key_pressed);
#endif
if (g_scan_state_dir != SCAN_OFF || // frequency/channel scanning
g_screen_to_display == DISPLAY_SCANNER || // CTCSS/CDCSS scanning
g_css_scan_mode != CSS_SCAN_MODE_OFF) // " "