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

Squelch tuning

This commit is contained in:
OneOfEleven
2023-10-05 22:44:44 +01:00
parent 5c346c8466
commit ec5e9dde66
13 changed files with 111 additions and 96 deletions

View File

@ -16,13 +16,12 @@
#include <string.h>
#include "driver/keyboard.h"
#include "ui/inputbox.h"
char gInputBox[8];
uint8_t gInputBoxIndex;
void INPUTBOX_Append(const char Digit)
void INPUTBOX_Append(const KEY_Code_t Digit)
{
if (gInputBoxIndex >= sizeof(gInputBox))
return;
@ -30,6 +29,7 @@ void INPUTBOX_Append(const char Digit)
if (gInputBoxIndex == 0)
memset(gInputBox, 10, sizeof(gInputBox));
gInputBox[gInputBoxIndex++] = Digit - KEY_0;
if (Digit >= KEY_0 && Digit != KEY_INVALID)
gInputBox[gInputBoxIndex++] = (char)(Digit - KEY_0);
}

View File

@ -19,10 +19,12 @@
#include <stdint.h>
#include "driver/keyboard.h"
extern char gInputBox[8];
extern uint8_t gInputBoxIndex;
void INPUTBOX_Append(const char Digit);
void INPUTBOX_Append(const KEY_Code_t Digit);
#endif