watchdog,percent done,

This commit is contained in:
Bernhard Kubicek
2011-11-15 20:54:40 +01:00
parent c57906b627
commit 7919a40d06
7 changed files with 55 additions and 33 deletions

View File

@@ -42,10 +42,12 @@ ISR(WDT_vect)
#ifdef RESET_MANUAL
LCD_MESSAGEPGM("Please Reset!");
LCD_STATUS;
SERIAL_ERROR_START;
SERIAL_ERRORLNPGM("Something is wrong, please turn off the printer.");
#else
LCD_MESSAGEPGM("Timeout, resetting!");
LCD_STATUS;
#endif
//disable watchdog, it will survife reboot.
WDTCSR |= (1<<WDCE) | (1<<WDE);