Skip to content

Commit

Permalink
fix for bios-301 error
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Jul 29, 2023
1 parent f50e71d commit c38e3f4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions keyboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class Keyboard : Device

private PendingInterrupt _pi = new();

private bool _reset_trigger = false;

public Keyboard()
{
Expand Down Expand Up @@ -68,12 +67,7 @@ public override bool IO_Write(ushort port, byte value)
if (port == 0x0061)
{
if ((value & 0x40) == 0x00)
_reset_trigger = true;

else if (_reset_trigger)
{
_reset_trigger = false;

_keyboard_buffer_lock.WaitOne();

_keyboard_buffer.Clear();
Expand Down

0 comments on commit c38e3f4

Please sign in to comment.