Fix errors when using multiple commands concurrently
This commit is contained in:
parent
40d6fbd17c
commit
48e9b81478
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user