Fix STPC UART port check

This commit is contained in:
RichardG867
2020-07-20 15:07:54 -03:00
parent d31053e738
commit 31ca983604

View File

@@ -618,7 +618,7 @@ stpc_serial_handlers(uint8_t val)
uart1_io = 0x2f8; uart1_io = 0x2f8;
} }
if ((uart0_io & 0x0f00) < 0x300) { if (uart0_io < 0x300) {
/* The address for UART0 defines the IRQs for both ports. */ /* The address for UART0 defines the IRQs for both ports. */
uart0_irq = 3; uart0_irq = 3;
uart1_irq = 4; uart1_irq = 4;