Skip to content

Commit 8b40777

Browse files
committed
Real solution : make serialEvent() weak in HardwareSerial.h
Also reverted Fubarino SD variant changes cause I stupid
1 parent 5d28b27 commit 8b40777

File tree

4 files changed

+655
-675
lines changed

4 files changed

+655
-675
lines changed

pic32/cores/pic32/HardwareSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class USBSerial : public Stream
342342
#endif
343343
#endif
344344

345-
void serialEventRun();
345+
extern void serialEventRun(void) __attribute__((weak));
346346

347347
//* ------------------------------------------------------------
348348

pic32/cores/pic32/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(void)
6161
{
6262
_scheduleTask();
6363
loop();
64-
serialEventRun();
64+
if (serialEventRun) serialEventRun();
6565
}
6666
return 0;
6767
}

0 commit comments

Comments
 (0)