Fix typo from long ago

This commit is contained in:
Alex Voinea 2022-02-04 16:28:49 +01:00
parent 58867f6c06
commit 274f198188
1 changed files with 4 additions and 4 deletions

View File

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