|
|
@ -108,7 +108,7 @@ int main(void)
|
|
|
|
StartSketch();
|
|
|
|
StartSketch();
|
|
|
|
} else if ((mcusr_state & (1<<WDRF)) && (bootKeyPtrVal != bootKey) && (pgm_read_word(0) != 0xFFFF)) {
|
|
|
|
} else if ((mcusr_state & (1<<WDRF)) && (bootKeyPtrVal != bootKey) && (pgm_read_word(0) != 0xFFFF)) {
|
|
|
|
// If it looks like an "accidental" watchdog reset then start the sketch.
|
|
|
|
// If it looks like an "accidental" watchdog reset then start the sketch.
|
|
|
|
StartSketch();
|
|
|
|
//StartSketch();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Setup hardware required for the bootloader */
|
|
|
|
/* Setup hardware required for the bootloader */
|
|
|
|