Fixed a very stupid bug in device/serial.c, fixes #3558 .

This commit is contained in:
OBattler
2023-08-14 17:15:09 +02:00
parent a77a9d3c2d
commit 459d4a4a68

View File

@@ -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;
}
}