Skip to content

Commit

Permalink
🩹 Fix STM32 HW Serial (MarlinFirmware#26531)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbq authored Feb 2, 2024
1 parent 4c5d783 commit c476e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/HAL/STM32/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
void serialEvent2() __attribute__((weak));
#endif
#ifdef USING_HW_SERIAL3
HAL_HardwareSerial Serial3(USART3);
HAL_HardwareSerial HSerial3(USART3);
void serialEvent3() __attribute__((weak));
#endif
#ifdef USING_HW_SERIAL4
Expand All @@ -147,9 +147,9 @@
#endif
#ifdef USING_HW_SERIAL6
#ifdef USART6
HAL_HardwareSerial HSerial5(USART6);
HAL_HardwareSerial HSerial6(USART6);
#else
HAL_HardwareSerial HSerial5(UART6);
HAL_HardwareSerial HSerial6(UART6);
#endif
void serialEvent5() __attribute__((weak));
#endif
Expand Down

0 comments on commit c476e62

Please sign in to comment.