From 459d4a4a68394824913fb2258e2ba1e26820c29c Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 14 Aug 2023 17:15:09 +0200 Subject: [PATCH] Fixed a very stupid bug in device/serial.c, fixes #3558 . --- src/device/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/serial.c b/src/device/serial.c index 1587fbe03..3a5b237c2 100644 --- a/src/device/serial.c +++ b/src/device/serial.c @@ -112,7 +112,7 @@ serial_do_irq(serial_t *dev, int set) if (dev->irq != 0xff) { if (set || (dev->irq_state != !!set)) picint_common(1 << dev->irq, !!(dev->type >= SERIAL_16450), set, &dev->irq_state); - if (dev->type >= SERIAL_16450) + if (dev->type < SERIAL_16450) dev->irq_state = !!set; } }