From 8e7027f11573d4f28aa352986da406c07b99df0a Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 2 Mar 2020 14:10:27 +0900 Subject: [PATCH] ibmpc_usb: Check overrun error for CS2 and CS3 --- converter/ibmpc_usb/ibmpc_usb.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/converter/ibmpc_usb/ibmpc_usb.c b/converter/ibmpc_usb/ibmpc_usb.c index c10a765d..eb71d333 100644 --- a/converter/ibmpc_usb/ibmpc_usb.c +++ b/converter/ibmpc_usb/ibmpc_usb.c @@ -667,6 +667,10 @@ static int8_t process_cs2(void) case INIT: switch (code) { case 0x00: // Error/Overrun [3]p.26 + xprintf("!CS2_OVR!\n"); + matrix_clear(); + clear_keyboard(); + break; case 0xFF: matrix_clear(); xprintf("!CS2_ERR!\n"); @@ -846,6 +850,10 @@ static int8_t process_cs3(void) case READY: switch (code) { case 0x00: // Error/Overrun [3]p.26 + xprintf("!CS3_OVR!\n"); + matrix_clear(); + clear_keyboard(); + break; case 0xFF: xprintf("!CS3_ERR!\n"); return -1; @@ -871,6 +879,11 @@ static int8_t process_cs3(void) case F0: // Break code switch (code) { case 0x00: + xprintf("!CS3_F0_OVR!\n"); + matrix_clear(); + clear_keyboard(); + state = READY; + break; case 0xFF: xprintf("!CS3_F0_ERR!\n"); state = READY; -- 2.46.2