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 1
1
#include " WSerial.h"
2
2
3
- void serialEventRun (void )
3
+ WEAK void serialEventRun (void )
4
4
{
5
5
#if defined(HAVE_HWSERIAL1)
6
6
if (serialEvent1 && Serial1.available ()) {
Original file line number Diff line number Diff line change @@ -165,6 +165,6 @@ extern void serialEvent10(void) __attribute__((weak));
165
165
extern void serialEventLP1 (void ) __attribute__((weak ));
166
166
#endif /* HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY */
167
167
168
- extern void serialEventRun (void ) __attribute__(( weak )) ;
168
+ extern void serialEventRun (void );
169
169
170
170
#endif /* WIRING_SERIAL_H */
Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ int main(void)
62
62
CoreCallback ();
63
63
#endif
64
64
loop ();
65
- if (serialEventRun) {
66
- serialEventRun ();
67
- }
65
+ serialEventRun ();
68
66
}
69
67
70
68
return 0 ;
You can’t perform that action at this time.
0 commit comments