Skip to content

Commit f1021be

Browse files
committed
porting scheduler for avr328
1 parent 2294a27 commit f1021be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Scheduler.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ void SchedulerClass::startLoop(SchedulerTask task, uint32_t stackSize) {
194194
static void startTaskHelper(void *taskData) {
195195
SchedulerTask task = reinterpret_cast<SchedulerTask>(taskData);
196196
task();
197+
#if defined(ARDUINO_ARCH_AVR)
198+
yield();
199+
#endif
197200
}
198201

199202
void SchedulerClass::start(SchedulerTask task, uint32_t stackSize) {

0 commit comments

Comments
 (0)