From acb15b4a5082599c905a95e6a7760903b3e027ef Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 17 Nov 2020 12:55:10 +0900 Subject: [PATCH] ibmpc_usb: Fix Pause of Code Set1(XT) https://geekhack.org/index.php?topic=17458.msg2980704#msg2980704 --- converter/ibmpc_usb/ibmpc_usb.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/converter/ibmpc_usb/ibmpc_usb.c b/converter/ibmpc_usb/ibmpc_usb.c index 43dcf0d8..f31e83dd 100644 --- a/converter/ibmpc_usb/ibmpc_usb.c +++ b/converter/ibmpc_usb/ibmpc_usb.c @@ -522,7 +522,7 @@ static int8_t process_cs1(uint8_t code) static enum { INIT, E0, - // Pause: E1 1D 45, E1 9D C5 [a] (TODO: test) + // Pause: E1 1D 45, E1 9D C5 [a] E1, E1_1D, E1_9D, @@ -579,7 +579,8 @@ static int8_t process_cs1(uint8_t code) case E1_1D: switch (code) { case 0x45: - matrix_make(0x55); + matrix_make(0x55); // Pause + state = INIT; break; default: state = INIT; @@ -588,8 +589,9 @@ static int8_t process_cs1(uint8_t code) break; case E1_9D: switch (code) { - case 0x45: - matrix_break(0x55); + case 0xC5: + matrix_break(0x55); // Pause + state = INIT; break; default: state = INIT; -- 2.46.2