Skip to content

Commit 3e415ba

Browse files
committed
add tud_cdc_write_flush() call in main() and yield()
1 parent 5632e53 commit 3e415ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ int main( void )
5555

5656
#ifdef USE_TINYUSB
5757
tud_task();
58+
tud_cdc_write_flush();
5859
#endif
5960

6061
if (serialEventRun) serialEventRun();
@@ -67,6 +68,7 @@ int main( void )
6768
void yield(void)
6869
{
6970
tud_task();
71+
tud_cdc_write_flush();
7072
}
7173
#endif
7274

0 commit comments

Comments
 (0)