Skip to content

Commit

Permalink
Make sure startup delay is similar on SAMD51
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Apr 12, 2019
1 parent 4c2e73e commit 61b7505
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ int main(void) {

if (!main_b_cdc_enable) {
// get more predictable timings before the USB is enumerated
delay(1);
for (int i = 1; i < 256; ++i) {
asm("nop");
}
}
}
}

0 comments on commit 61b7505

Please sign in to comment.