disable CFG_TUD_CDC_FLUSH_ON_SOF to prevent usbd overflow

This commit is contained in:
hathach
2018-06-23 13:24:21 +07:00
parent fb6c6eb0b7
commit e727bd215c
4 changed files with 13 additions and 6 deletions

View File

@ -128,6 +128,9 @@ static void wait_for_events(void)
// USB stack
tusb_task();
// Send out cdc's data
tud_cdc_flush();
if ((m_update_status == BOOTLOADER_COMPLETE) ||
(m_update_status == BOOTLOADER_TIMEOUT) ||
(m_update_status == BOOTLOADER_RESET))