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:
@ -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) // " "
|
||||
|
Reference in New Issue
Block a user