File tree 3 files changed +7
-2
lines changed
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
97
97
uart_t * _uart;
98
98
};
99
99
100
+ extern void serialEventRun (void ) __attribute__((weak));
101
+
100
102
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
101
103
extern HardwareSerial Serial;
102
104
extern HardwareSerial Serial1;
103
105
extern HardwareSerial Serial2;
104
106
#endif
105
107
106
- #endif
108
+ #endif // HardwareSerial_h
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ float temperatureRead()
44
44
return (temprature_sens_read () - 32 ) / 1.8 ;
45
45
}
46
46
47
- void yield ()
47
+ void __yield ()
48
48
{
49
49
vPortYield ();
50
50
}
51
51
52
+ void yield () __attribute__ ((weak , alias ("__yield" )));
53
+
52
54
#if CONFIG_AUTOSTART_ARDUINO
53
55
54
56
extern TaskHandle_t loopTaskHandle ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ void loopTask(void *pvParameters)
17
17
esp_task_wdt_reset ();
18
18
}
19
19
loop ();
20
+ if (serialEventRun) serialEventRun ();
20
21
}
21
22
}
22
23
You can’t perform that action at this time.
0 commit comments