From 274f198188c3f5137ab2de74ddde2618ee5929e4 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Fri, 4 Feb 2022 16:28:49 +0100 Subject: [PATCH] Fix typo from long ago --- Firmware/MarlinSerial.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Firmware/MarlinSerial.h b/Firmware/MarlinSerial.h index ebfc11c1b..3bb0926b2 100644 --- a/Firmware/MarlinSerial.h +++ b/Firmware/MarlinSerial.h @@ -28,10 +28,10 @@ #endif // The presence of the UBRRH register is used to detect a UART. -#if ((port == 0 && (defined(UBRRH) || defined(UBRR0H))) || \ - (port == 1 && defined(UBRR1H)) || \ - (port == 2 && defined(UBRR2H)) || \ - (port == 3 && defined(UBRR3H))) +#if ((SERIAL_PORT == 0 && (defined(UBRRH) || defined(UBRR0H))) || \ + (SERIAL_PORT == 1 && defined(UBRR1H)) || \ + (SERIAL_PORT == 2 && defined(UBRR2H)) || \ + (SERIAL_PORT == 3 && defined(UBRR3H))) #define HAS_UART #endif