mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 14:48:03 +03:00
Fixed button/ptt being ignored, re-wrote a keyboard function as well.
This commit is contained in:
@ -22,10 +22,17 @@
|
||||
#include "driver/i2c.h"
|
||||
#include "misc.h"
|
||||
|
||||
key_code_t g_key_reading_0 = KEY_INVALID;
|
||||
key_code_t g_key_reading_1 = KEY_INVALID;
|
||||
uint16_t g_debounce_counter = 0;
|
||||
bool g_f_key_was_pressed = false;
|
||||
uint8_t g_ptt_debounce;
|
||||
uint8_t g_key_debounce_press;
|
||||
uint8_t g_key_debounce_repeat;
|
||||
key_code_t g_key_prev = KEY_INVALID;
|
||||
bool g_key_held;
|
||||
bool g_fkey_pressed;
|
||||
bool g_ptt_is_pressed;
|
||||
|
||||
bool g_ptt_was_released;
|
||||
bool g_ptt_was_pressed;
|
||||
uint8_t g_keypad_locked;
|
||||
|
||||
static const struct {
|
||||
|
||||
@ -96,9 +103,6 @@ key_code_t KEYBOARD_Poll(void)
|
||||
{
|
||||
key_code_t Key = KEY_INVALID;
|
||||
|
||||
// if (!GPIO_CheckBit(&GPIOC->DATA, GPIOC_PIN_PTT))
|
||||
// return KEY_PTT;
|
||||
|
||||
// *****************
|
||||
|
||||
for (unsigned int j = 0; j < ARRAY_SIZE(keyboard); j++)
|
||||
|
Reference in New Issue
Block a user