Преглед на файлове

Fix compiling the watchdog error message when the manual reset watchdog is used.

daid303 преди 12 години
родител
ревизия
1f27870d41
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5
    5
      Marlin/watchdog.cpp

+ 5
- 5
Marlin/watchdog.cpp Целия файл

@@ -1,7 +1,7 @@
1 1
 #include "Marlin.h"
2 2
 
3
-#ifdef USE_WATCHDOG
4
-#include <avr/wdt.h>
3
+#ifdef USE_WATCHDOG
4
+#include <avr/wdt.h>
5 5
 
6 6
 #include "watchdog.h"
7 7
 #include "ultralcd.h"
@@ -42,10 +42,10 @@ void watchdog_reset()
42 42
 //Watchdog timer interrupt, called if main program blocks >1sec and manual reset is enabled.
43 43
 #ifdef WATCHDOG_RESET_MANUAL
44 44
 ISR(WDT_vect)
45
-{ 
45
+{ 
46 46
     //TODO: This message gets overwritten by the kill() call
47
-    LCD_MESSAGEPGM("ERR:Please Reset");//16 characters so it fits on a 16x2 display
48
-    LCD_STATUS;
47
+    LCD_ALERTMESSAGEPGM("ERR:Please Reset");//16 characters so it fits on a 16x2 display
48
+    lcd_update();
49 49
     SERIAL_ERROR_START;
50 50
     SERIAL_ERRORLNPGM("Something is wrong, please turn off the printer.");
51 51
     kill(); //kill blocks

Loading…
Отказ
Запис