shortened the watchdog period for resetting Leonardo from 2 s to 250 ms. Reset into bootloader is much snappier.

This commit is contained in:
Zach Eveland 2012-02-22 22:33:44 -05:00
parent 65ddc6c43b
commit ae23ed0570
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}