We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b28a7d commit 48ccfd2Copy full SHA for 48ccfd2
cores/arduino/main.cpp
@@ -11,15 +11,21 @@ int main( void )
11
{
12
pre_init( );
13
#if defined(USE_TINYUSB)
14
- TinyUSB_Device_Init(0);
+ if (TinyUSB_Device_Init) {
15
+ TinyUSB_Device_Init(0);
16
+ }
17
#endif
18
setup( );
19
20
do {
21
loop( );
22
- TinyUSB_Device_Task();
- TinyUSB_Device_FlushCDC();
23
+ if (TinyUSB_Device_Task) {
24
+ TinyUSB_Device_Task();
25
26
+ if (TinyUSB_Device_FlushCDC) {
27
+ TinyUSB_Device_FlushCDC();
28
29
30
} while (1);
31
0 commit comments