Skip to content

Commit 3aceb03

Browse files
committed
ESP32 portability fix
1 parent db64356 commit 3aceb03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/FastScheduler/src/FastScheduler.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ extern "C"
1717
run_scheduled_functions(SCHEDULE_FUNCTION_FROM_LOOP);
1818
}
1919

20+
#ifdef ESP8266
2021
void __esp_yield();
2122

2223
extern "C" void esp_yield()
2324
{
2425
__esp_yield();
2526
run_scheduled_functions(SCHEDULE_FUNCTION_WITHOUT_YIELDELAYCALLS);
2627
}
28+
#endif
2729
}
2830

2931
typedef std::function<bool(void)> mFuncT;

0 commit comments

Comments
 (0)