Skip to content

Commit c476e62

Browse files
authored
🩹 Fix STM32 HW Serial (MarlinFirmware#26531)
Followup to MarlinFirmware#26328
1 parent 4c5d783 commit c476e62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/HAL/STM32/HardwareSerial.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
void serialEvent2() __attribute__((weak));
127127
#endif
128128
#ifdef USING_HW_SERIAL3
129-
HAL_HardwareSerial Serial3(USART3);
129+
HAL_HardwareSerial HSerial3(USART3);
130130
void serialEvent3() __attribute__((weak));
131131
#endif
132132
#ifdef USING_HW_SERIAL4
@@ -147,9 +147,9 @@
147147
#endif
148148
#ifdef USING_HW_SERIAL6
149149
#ifdef USART6
150-
HAL_HardwareSerial HSerial5(USART6);
150+
HAL_HardwareSerial HSerial6(USART6);
151151
#else
152-
HAL_HardwareSerial HSerial5(UART6);
152+
HAL_HardwareSerial HSerial6(UART6);
153153
#endif
154154
void serialEvent5() __attribute__((weak));
155155
#endif

0 commit comments

Comments
 (0)