Skip to content

Commit 3c173d5

Browse files
committed
update with TinyUSB_Device_FlushCDC()
1 parent 30d0738 commit 3c173d5

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

cores/arduino/Arduino.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,8 @@ void loop( void ) ;
150150

151151
// USB
152152
#ifdef USE_TINYUSB
153-
#ifdef __cplusplus
154153
// Needed for declaring Serial
155154
#include "Adafruit_USBD_CDC.h"
156-
#endif
157155
#else
158156
#include "USB/USBDesc.h"
159157
#include "USB/USBCore.h"

cores/arduino/delay.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,11 @@ void SysTick_DefaultHandler(void)
119119

120120
#if defined(USE_TINYUSB)
121121

122-
#include "Adafruit_TinyUSB_API.h"
123-
124122
// run TinyUSB background task when yield()
125123
void yield(void)
126124
{
127125
TinyUSB_Device_Task();
126+
TinyUSB_Device_FlushCDC();
128127
}
129128

130129
#endif

0 commit comments

Comments
 (0)