Skip to content

Commit 2a79aad

Browse files
committed
🔨 Fix serial port #error text
1 parent bbbd604 commit 2a79aad

File tree

1 file changed

+4
-4
lines changed
  • Marlin/src/HAL/STM32

1 file changed

+4
-4
lines changed

Marlin/src/HAL/STM32/HAL.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#if WITHIN(SERIAL_PORT_2, 1, 6)
7272
#define MYSERIAL2 MSERIAL(SERIAL_PORT_2)
7373
#elif !defined(USBCON)
74-
#error "SERIAL_PORT must be from 1 to 6."
74+
#error "SERIAL_PORT_2 must be from 1 to 6."
7575
#elif SERIAL_PORT_2 == -1
7676
#define MYSERIAL2 MSerialUSB
7777
#else
@@ -83,7 +83,7 @@
8383
#if WITHIN(SERIAL_PORT_3, 1, 6)
8484
#define MYSERIAL3 MSERIAL(SERIAL_PORT_3)
8585
#elif !defined(USBCON)
86-
#error "SERIAL_PORT must be from 1 to 6."
86+
#error "SERIAL_PORT_3 must be from 1 to 6."
8787
#elif SERIAL_PORT_3 == -1
8888
#define MYSERIAL3 MSerialUSB
8989
#else
@@ -95,7 +95,7 @@
9595
#if WITHIN(MMU2_SERIAL_PORT, 1, 6)
9696
#define MMU2_SERIAL MSERIAL(MMU2_SERIAL_PORT)
9797
#elif !defined(USBCON)
98-
#error "SERIAL_PORT must be from 1 to 6."
98+
#error "MMU2_SERIAL_PORT must be from 1 to 6."
9999
#elif MMU2_SERIAL_PORT == -1
100100
#define MMU2_SERIAL MSerialUSB
101101
#else
@@ -107,7 +107,7 @@
107107
#if WITHIN(LCD_SERIAL_PORT, 1, 6)
108108
#define LCD_SERIAL MSERIAL(LCD_SERIAL_PORT)
109109
#elif !defined(USBCON)
110-
#error "SERIAL_PORT must be from 1 to 6."
110+
#error "LCD_SERIAL_PORT must be from 1 to 6."
111111
#elif LCD_SERIAL_PORT == -1
112112
#define LCD_SERIAL MSerialUSB
113113
#else

0 commit comments

Comments
 (0)