Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Fix RawKeyQueue empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderIce2 committed Mar 31, 2024
1 parent 5a00e91 commit 08c4bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/driver/devfile/master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ namespace Driver
/* Request scancode */
if (Size == 2 && Buffer[1] == 0x00)
{
if (RawKeyQueue.empty())
return 0;
while (RawKeyQueue.empty())
TaskManager->Yield();

Buffer[0] = RawKeyQueue.front();
RawKeyQueue.pop_front();
Expand Down

0 comments on commit 08c4bcc

Please sign in to comment.