Skip to content

Commit c0b04bc

Browse files
committed
add yield() to main loop
1 parent 32817be commit c0b04bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/rp2040/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ extern "C" int main() {
9191
setup();
9292
while (true) {
9393
loop();
94+
95+
#ifdef USE_TINYUSB
96+
yield();
97+
#endif
98+
9499
if (arduino::serialEventRun) {
95100
arduino::serialEventRun();
96101
}

0 commit comments

Comments
 (0)