Fix errors when using multiple commands concurrently

This commit is contained in:
Curle 2021-06-19 21:31:05 +01:00
parent 40d6fbd17c
commit 48e9b81478
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -129,10 +129,11 @@ void TrackInternalBuffer(KeyboardData data) {
SerialPrintf("Sharp returned %d\r\n", returnVal);
} else {
SerialPrintf("[ Kbd] No match for %s\r\n", InternalBuffer);
}
memset(InternalBuffer, 0, 4098);
BufferLength = 0;
}
}
if(!tentative && data.Scancode <= 0x2c && data.Scancode != 0x1C) {
SerialPrintf("[ Kbd] Adding %c to the buffer.\r\n", data.Char);