1 parent 6768116 commit cb6b30aCopy full SHA for cb6b30a
1 file changed
cores/esp8266/core_esp8266_main.cpp
@@ -100,12 +100,14 @@ static void esp_yield_within_cont() {
100
run_scheduled_recurrent_functions();
101
}
102
103
-extern "C" void esp_yield() {
+extern "C" void __esp_yield() {
104
if (can_yield()) {
105
esp_yield_within_cont();
106
107
108
109
+extern "C" void esp_yield() __attribute__ ((weak, alias("__esp_yield")));
110
+
111
extern "C" void esp_schedule() {
112
// always on CONT stack here
113
ets_post(LOOP_TASK_PRIORITY, 0, 0);
0 commit comments