From 48e9b8147844e2bb85827e25c669ae59a2e76918 Mon Sep 17 00:00:00 2001 From: Curle Date: Sat, 19 Jun 2021 21:31:05 +0100 Subject: [PATCH] Fix errors when using multiple commands concurrently --- src/kernel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel.c b/src/kernel.c index 2958bbf..e36b7fb 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -129,9 +129,10 @@ 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; } + + memset(InternalBuffer, 0, 4098); + BufferLength = 0; } if(!tentative && data.Scancode <= 0x2c && data.Scancode != 0x1C) {