shortened the watchdog period for resetting Leonardo from 2 s to 250 ms. Reset into bootloader is much snappier.
This commit is contained in:
parent
66019a7550
commit
0138ee9b01
|
@ -107,7 +107,7 @@ bool WEAK CDC_Setup(Setup& setup)
|
|||
// like servicing endpoints before the sketch ends
|
||||
if (0 != _usbLineInfo.lineState && 1200 == _usbLineInfo.dwDTERate) {
|
||||
*(uint16_t *)0x0A00 = 0x7777;
|
||||
wdt_enable(WDTO_2S);
|
||||
wdt_enable(WDTO_250MS);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue