1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-16 04:12:49 +00:00

Fixed the amiga keyboard fix

This commit is contained in:
harbaum
2014-04-25 11:26:19 +00:00
parent 88f4e8dc8d
commit d363e3d683

View File

@@ -276,10 +276,13 @@ static void kbd_fifo_enqueue(unsigned short code) {
// send pending bytes if timer has run up
static void kbd_fifo_poll() {
if(kbd_fifo_w == kbd_fifo_r)
// timer enabled and runnig?
if(kbd_timer && !CheckTimer(kbd_timer))
return;
kbd_timer = 0; // timer == 0 means timer is not running anymore
if(!CheckTimer(kbd_timer))
if(kbd_fifo_w == kbd_fifo_r)
return;
kbd_fifo_minimig_send(kbd_fifo[kbd_fifo_r]);