mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
Fic typing in keys bug
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
extern char gInputBox[8];
|
||||
extern uint8_t gInputBoxIndex;
|
||||
|
||||
void INPUTBOX_Append(char Digit);
|
||||
void INPUTBOX_Append(const char Digit);
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user