Skip to content

Commit

Permalink
fix build error and update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwelltoo committed Feb 20, 2023
1 parent bee0a78 commit c27e54e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static inline unsigned char __interruptsStatus(void)

// USB
#ifdef USE_TINYUSB
#include "Adafruit_TinyUSB_Core.h"
#include "Adafruit_USBD_CDC.h"
#else
#include "USB/USBDesc.h"
#include "USB/USBCore.h"
Expand Down
4 changes: 0 additions & 4 deletions cores/arduino/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ extern uint32_t tud_cdc_n_write_flush (uint8_t itf);
static void __empty()
{
// Empty
#if defined(USE_TINYUSB)
tud_task();
tud_cdc_n_write_flush(0);
#endif
}
void yield(void) __attribute__((weak, alias("__empty")));

Expand Down

0 comments on commit c27e54e

Please sign in to comment.