File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ class HardwareSerial: public Stream
9797 uart_t * _uart;
9898};
9999
100+ extern void serialEventRun (void ) __attribute__((weak));
101+
100102#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
101103extern HardwareSerial Serial;
102104extern HardwareSerial Serial1;
Original file line number Diff line number Diff line change @@ -9,19 +9,15 @@ TaskHandle_t loopTaskHandle = NULL;
99
1010bool loopTaskWDTEnabled;
1111
12- extern " C" void esp_loop (void ) __attribute__((weak));
13- extern " C" void esp_loop (void ) {
14- loop ();
15- }
16-
1712void loopTask (void *pvParameters)
1813{
1914 setup ();
2015 for (;;) {
2116 if (loopTaskWDTEnabled){
2217 esp_task_wdt_reset ();
2318 }
24- esp_loop ();
19+ loop ();
20+ if (serialEventRun) serialEventRun ();
2521 }
2622}
2723
You can’t perform that action at this time.
0 commit comments