mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
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
65ddc6c43b
commit
ae23ed0570
@ -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
Block a user