Add a string parameter to kill()

Makes the output on the LCD adjustable.
This commit is contained in:
AnHardt
2015-05-20 20:53:48 +02:00
parent 7ff18f6657
commit f4a93ed997
4 changed files with 10 additions and 14 deletions

View File

@ -43,12 +43,9 @@ void watchdog_reset()
#ifdef WATCHDOG_RESET_MANUAL
ISR(WDT_vect)
{
//TODO: This message gets overwritten by the kill() call
LCD_ALERTMESSAGEPGM("ERR:Please Reset");//16 characters so it fits on a 16x2 display
lcd_update();
SERIAL_ERROR_START;
SERIAL_ERRORLNPGM("Something is wrong, please turn off the printer.");
kill(); //kill blocks
kill(PSTR("ERR:Please Reset")); //kill blocks //16 characters so it fits on a 16x2 display
while(1); //wait for user or serial reset
}
#endif//RESET_MANUAL