소스 검색

Fix typo from long ago

Alex Voinea 3 년 전
부모
커밋
274f198188
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      Firmware/MarlinSerial.h

+ 4 - 4
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