Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cores/arduino/WSerial.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "WSerial.h"

void serialEventRun(void)
WEAK void serialEventRun(void)
{
#if defined(HAVE_HWSERIAL1)
if (serialEvent1 && Serial1.available()) {
Expand Down
2 changes: 1 addition & 1 deletion cores/arduino/WSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ extern void serialEvent10(void) __attribute__((weak));
extern void serialEventLP1(void) __attribute__((weak));
#endif /* HAL_UART_MODULE_ENABLED && !HAL_UART_MODULE_ONLY */

extern void serialEventRun(void) __attribute__((weak));
extern void serialEventRun(void);

#endif /* WIRING_SERIAL_H */
4 changes: 1 addition & 3 deletions cores/arduino/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ int main(void)
CoreCallback();
#endif
loop();
if (serialEventRun) {
serialEventRun();
}
serialEventRun();
}

return 0;
Expand Down