File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11#include " WSerial.h"
22
3- void serialEventRun (void )
3+ WEAK void serialEventRun (void )
44{
55#if defined(HAVE_HWSERIAL1)
66 if (serialEvent1 && Serial1.available ()) {
Original file line number Diff line number Diff line change @@ -165,6 +165,6 @@ extern void serialEvent10(void) __attribute__((weak));
165165extern void serialEventLP1 (void ) __attribute__((weak ));
166166#endif /* HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY */
167167
168- extern void serialEventRun (void ) __attribute__(( weak )) ;
168+ extern void serialEventRun (void );
169169
170170#endif /* WIRING_SERIAL_H */
Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ int main(void)
6262 CoreCallback ();
6363#endif
6464 loop ();
65- if (serialEventRun) {
66- serialEventRun ();
67- }
65+ serialEventRun ();
6866 }
6967
7068 return 0 ;
You can’t perform that action at this time.
0 commit comments