summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-01 00:08:18 -0800
committerMichael Pavone <pavone@retrodev.com>2017-03-01 00:08:18 -0800
commitb8aed7e38c43ebc2707f3467cbecdb6b076ffd3d (patch)
tree19f6221025da2dd0c2f4571c4fe4ab79a59c0795 /io.c
parent05e931ae02e3290566dcca0ca639dc019084edd7 (diff)
Fix removal of scan codes from buffer in XBAND keyboard
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9134e85..8999242 100644
--- a/io.c
+++ b/io.c
@@ -1642,7 +1642,7 @@ void io_data_write(io_port * port, uint8_t value, uint32_t current_cycle)
if (output & TH) {
//request is over
if (
- port->device.keyboard.mode == KB_READ && port->device.keyboard.tr_counter > 7
+ port->device.keyboard.mode == KB_READ && port->device.keyboard.tr_counter > 6
&& (port->device.keyboard.tr_counter & 1)
) {
if (port->device.keyboard.events[port->device.keyboard.read_pos] & 0xFF00) {