Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ void sys_tick_handler(void)
{
if (paused && !single_step) return;

// FIXME avoid spamming the USB host before our device has been configured
static unsigned start_delay = 0;
if (start_delay < 500) {
++start_delay;
return;
}

struct composite_report report = user_data[report_index];
uint16_t len = 0;
uint8_t id = report.report_id;
Expand Down