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

Fic typing in keys bug

This commit is contained in:
OneOfEleven
2023-10-05 17:38:25 +01:00
parent 40d09591b3
commit 5c346c8466
10 changed files with 54 additions and 37 deletions

View File

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