File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,12 @@ 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;
103105extern HardwareSerial Serial2;
104106#endif
105107
106- #endif
108+ #endif // HardwareSerial_h
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ float temperatureRead()
4444 return (temprature_sens_read () - 32 ) / 1.8 ;
4545}
4646
47- void yield ()
47+ void __yield ()
4848{
4949 vPortYield ();
5050}
5151
52+ void yield () __attribute__ ((weak , alias ("__yield" )));
53+
5254#if CONFIG_AUTOSTART_ARDUINO
5355
5456extern TaskHandle_t loopTaskHandle ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ void loopTask(void *pvParameters)
1717 esp_task_wdt_reset ();
1818 }
1919 loop ();
20+ if (serialEventRun) serialEventRun ();
2021 }
2122}
2223
You can’t perform that action at this time.
0 commit comments