Clear WDRF flag and set WDCE before enabling watchdog
This commit is contained in:
@@ -57,14 +57,6 @@ static int Init(void)
|
||||
|
||||
Info("Initializing...");
|
||||
|
||||
// FIXME: Something is wrong here:
|
||||
// - AVRDUDE sometimes fails to verify flash.
|
||||
// - UART sometimes stops working.
|
||||
// - External crystal problems?
|
||||
// - Power supply problems?
|
||||
// - Wrong fuses? Unlikely.
|
||||
// - Bootloader problems?
|
||||
|
||||
// The watchdog timer is clocked from a separate
|
||||
// on-chip oscillator which runs at 1 MHz. Eight
|
||||
// different clock cycle periods can be selected
|
||||
|
||||
Reference in New Issue
Block a user