🩹 Fix STM32 HW Serial (#26531)

Followup to #26328
This commit is contained in:
Davide Rombolà 2024-02-02 02:31:39 +01:00 committed by GitHub
parent 4c5d7831c1
commit c476e62a6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,7 @@
void serialEvent2() __attribute__((weak)); void serialEvent2() __attribute__((weak));
#endif #endif
#ifdef USING_HW_SERIAL3 #ifdef USING_HW_SERIAL3
HAL_HardwareSerial Serial3(USART3); HAL_HardwareSerial HSerial3(USART3);
void serialEvent3() __attribute__((weak)); void serialEvent3() __attribute__((weak));
#endif #endif
#ifdef USING_HW_SERIAL4 #ifdef USING_HW_SERIAL4
@ -147,9 +147,9 @@
#endif #endif
#ifdef USING_HW_SERIAL6 #ifdef USING_HW_SERIAL6
#ifdef USART6 #ifdef USART6
HAL_HardwareSerial HSerial5(USART6); HAL_HardwareSerial HSerial6(USART6);
#else #else
HAL_HardwareSerial HSerial5(UART6); HAL_HardwareSerial HSerial6(UART6);
#endif #endif
void serialEvent5() __attribute__((weak)); void serialEvent5() __attribute__((weak));
#endif #endif