CHG: restored the wait in flash-mode. Its waiting for the device to "reboot"..

CHG: usb_Cdc,   :  usb specs say 100ms delay. Previous delay was much longer...
This commit is contained in:
iceman1001 2017-10-17 23:09:32 +02:00
commit 1f0a1edfbe
3 changed files with 29 additions and 4 deletions

View file

@ -11,6 +11,7 @@ ARMSRC =
THUMBSRC = cmd.c \
usb_cdc.c \
bootrom.c
ASMSRC = ram-reset.s flash-reset.s
## There is a strange bug with the linker: Sometimes it will not emit the glue to call

View file

@ -193,7 +193,8 @@ static void flash_mode(int externally_entered) {
byte_t rx[sizeof(UsbCommand)];
usb_enable();
//for (volatile size_t i=0; i<0x100000; i++) {};
for (volatile size_t i=0; i<0x100000; i++) {};
for(;;) {
WDT_HIT();