diff --git a/src/sio/sio_82091aa.c b/src/sio/sio_82091aa.c index c6e2effb8..16c7334f5 100644 --- a/src/sio/sio_82091aa.c +++ b/src/sio/sio_82091aa.c @@ -117,7 +117,7 @@ serial_handler(i82091aa_t *dev, int uart) break; } - serial_setup(dev->uart[uart], uart_port, (dev->regs[0x20] & 0x10) ? 4 : 3); + serial_setup(dev->uart[uart], uart_port, (dev->regs[reg] & 0x10) ? 4 : 3); }