Browse Source

Merge pull request #220 from MaikStohn/1d224cc031

Implemented support for KILL_PIN / Fixed compilation errors for incomplete/bad translations
ErikZalm 13 years ago
parent
commit
825adbd67b
7 changed files with 148 additions and 112 deletions
  1. 1
    1
      Marlin/Marlin.h
  2. 30
    18
      Marlin/Marlin.pde
  3. 103
    88
      Marlin/language.h
  4. 1
    1
      Marlin/planner.cpp
  5. 1
    1
      Marlin/stepper.cpp
  6. 3
    0
      Marlin/ultralcd.h
  7. 9
    3
      Marlin/ultralcd.pde

+ 1
- 1
Marlin/Marlin.h View File

@@ -107,7 +107,7 @@ FORCE_INLINE void serialprintPGM(const char *str)
107 107
 void get_command();
108 108
 void process_commands();
109 109
 
110
-void manage_inactivity(byte debug);
110
+void manage_inactivity();
111 111
 
112 112
 #if X_ENABLE_PIN > -1
113 113
   #define  enable_x() WRITE(X_ENABLE_PIN, X_ENABLE_ON)

+ 30
- 18
Marlin/Marlin.pde View File

@@ -245,6 +245,14 @@ void enquecommand(const char *cmd)
245 245
   }
246 246
 }
247 247
 
248
+void setup_killpin()
249
+{
250
+  #if( KILL_PIN>-1 )
251
+    pinMode(KILL_PIN,INPUT);
252
+    WRITE(KILL_PIN,HIGH);
253
+  #endif
254
+}
255
+    
248 256
 void setup_photpin()
249 257
 {
250 258
   #ifdef PHOTOGRAPH_PIN
@@ -276,7 +284,8 @@ void suicide()
276 284
 }
277 285
 
278 286
 void setup()
279
-{ 
287
+{
288
+  setup_killpin(); 
280 289
   setup_powerhold();
281 290
   MYSERIAL.begin(BAUDRATE);
282 291
   SERIAL_PROTOCOLLNPGM("start");
@@ -365,7 +374,7 @@ void loop()
365 374
   }
366 375
   //check heater every n milliseconds
367 376
   manage_heater();
368
-  manage_inactivity(1);
377
+  manage_inactivity();
369 378
   checkHitEndstops();
370 379
   LCD_STATUS;
371 380
 }
@@ -653,8 +662,8 @@ void process_commands()
653 662
       previous_millis_cmd = millis();
654 663
       while(millis()  < codenum ){
655 664
         manage_heater();
656
-        manage_inactivity(1);
657
-		LCD_STATUS;
665
+        manage_inactivity();
666
+        LCD_STATUS;
658 667
       }
659 668
       break;
660 669
       #ifdef FWRETRACT  
@@ -816,21 +825,20 @@ void process_commands()
816 825
       
817 826
       st_synchronize();
818 827
       previous_millis_cmd = millis();
819
-	  if (codenum > 0)
820
-	  {
828
+      if (codenum > 0){
821 829
         codenum += millis();  // keep track of when we started waiting
822 830
         while(millis()  < codenum && !CLICKED){
823 831
           manage_heater();
824
-          manage_inactivity(1);
825
-		  LCD_STATUS;
826
-		}
832
+          manage_inactivity();
833
+          LCD_STATUS;
834
+        }
827 835
       }else{
828
-        while(!CLICKED) {
836
+        while(!CLICKED){
829 837
           manage_heater();
830
-          manage_inactivity(1);
831
-		  LCD_STATUS;
832
-		}
833
-	  }
838
+          manage_inactivity();
839
+          LCD_STATUS;
840
+        }
841
+      }
834 842
     }
835 843
     break;
836 844
 #endif
@@ -1064,7 +1072,7 @@ void process_commands()
1064 1072
             codenum = millis();
1065 1073
           }
1066 1074
           manage_heater();
1067
-          manage_inactivity(1);
1075
+          manage_inactivity();
1068 1076
           LCD_STATUS;
1069 1077
         #ifdef TEMP_RESIDENCY_TIME
1070 1078
             /* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
@@ -1102,7 +1110,7 @@ void process_commands()
1102 1110
             codenum = millis(); 
1103 1111
           }
1104 1112
           manage_heater();
1105
-          manage_inactivity(1);
1113
+          manage_inactivity();
1106 1114
           LCD_STATUS;
1107 1115
         }
1108 1116
         LCD_MESSAGEPGM(MSG_BED_DONE);
@@ -1664,7 +1672,7 @@ void controllerFan()
1664 1672
 }
1665 1673
 #endif
1666 1674
 
1667
-void manage_inactivity(byte debug) 
1675
+void manage_inactivity() 
1668 1676
 { 
1669 1677
   if( (millis() - previous_millis_cmd) >  max_inactive_time ) 
1670 1678
     if(max_inactive_time) 
@@ -1682,6 +1690,10 @@ void manage_inactivity(byte debug)
1682 1690
       }
1683 1691
     }
1684 1692
   }
1693
+  #if( KILL_PIN>-1 )
1694
+    if( 0 == READ(KILL_PIN) )
1695
+      kill();
1696
+  #endif
1685 1697
   #ifdef CONTROLLERFAN_PIN
1686 1698
     controllerFan(); //Check if fan should be turned on to cool stepper drivers down
1687 1699
   #endif
@@ -1722,7 +1734,7 @@ void kill()
1722 1734
   if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,INPUT);
1723 1735
   SERIAL_ERROR_START;
1724 1736
   SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
1725
-  LCD_MESSAGEPGM(MSG_KILLED);
1737
+  LCD_ALERTMESSAGEPGM(MSG_KILLED);
1726 1738
   suicide();
1727 1739
   while(1); // Wait for reset
1728 1740
 }

+ 103
- 88
Marlin/language.h View File

@@ -1,11 +1,16 @@
1 1
 #ifndef LANGUAGE_H
2 2
 #define LANGUAGE_H
3 3
 
4
+// NOTE: IF YOU CHANGE THIS FILE / MERGE THIS FILE WITH CHANGES
5
+//
6
+//   ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h" 
7
+//   ==> ALSO TRY ALL AVAILABLE "LANGUAGE_CHOICE" OPTIONS
8
+
4 9
 // Languages
5
-// 1  Custom (For you to add your own messages)
6
-// 2  English 
10
+// 1  English
11
+// 2  -
7 12
 // 3  French	(Waiting translation)
8
-// 4  German	(Waiting translation)
13
+// 4  German
9 14
 // 5  Spanish
10 15
 // 6  Etc
11 16
 
@@ -35,9 +40,13 @@
35 40
 	#define MSG_DISABLE_STEPPERS " Disable Steppers"
36 41
 	#define MSG_AUTO_HOME " Auto Home"
37 42
 	#define MSG_SET_ORIGIN " Set Origin"
43
+	#define MSG_PREHEAT_PLA " Preheat PLA"
44
+	#define MSG_PREHEAT_PLA_SETTINGS " Preheat PLA Setting"
45
+	#define MSG_PREHEAT_ABS " Preheat ABS"
46
+	#define MSG_PREHEAT_ABS_SETTINGS " Preheat ABS Setting"
38 47
 	#define MSG_COOLDOWN " Cooldown"
39 48
 	#define MSG_EXTRUDE " Extrude"
40
-	#define MSG_RETRACT " Extract"
49
+	#define MSG_RETRACT " Retract"
41 50
 	#define MSG_PREHEAT_PLA " Preheat PLA"
42 51
 	#define MSG_PREHEAT_ABS " Preheat ABS"
43 52
 	#define MSG_MOVE_AXIS " Move Axis      \x7E"
@@ -87,24 +96,19 @@
87 96
 	#define MSG_PREPARE " Prepare \x7E"
88 97
 	#define MSG_PREPARE_ALT " Prepare \003"
89 98
 	#define MSG_CONTROL_ARROW " Control \x7E"
90
-	#define MSG_RETRACT_ARROW " Control \x7E"
99
+	#define MSG_RETRACT_ARROW " Retract \x7E"
91 100
 	#define MSG_TUNE " Tune    \x7E"
92 101
 	#define MSG_PAUSE_PRINT " Pause Print \x7E"
93 102
 	#define MSG_RESUME_PRINT " Resume Print \x7E"
94 103
 	#define MSG_STOP_PRINT " Stop Print   \x7E"
95 104
 	#define MSG_CARD_MENU " Card Menu    \x7E"
96 105
 	#define MSG_NO_CARD " No Card"
97
-	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
98 106
 	#define MSG_DWELL "Sleep..."
99 107
 	#define MSG_USERWAIT "Wait for user..."
100 108
 	#define MSG_NO_MOVE "No move."
101 109
 	#define MSG_PART_RELEASE "Partial Release"
102 110
 	#define MSG_KILLED "KILLED. "
103 111
 	#define MSG_STOPPED "STOPPED. "
104
-	#define MSG_PREHEAT_PLA " Preheat PLA"
105
-	#define MSG_PREHEAT_PLA_SETTINGS " Preheat PLA Setting"
106
-	#define MSG_PREHEAT_ABS_SETTINGS " Preheat ABS Setting"
107
-	#define MSG_PREHEAT_ABS " Preheat ABS"
108 112
 	#define MSG_STEPPER_RELEASED "Released."
109 113
 	#define MSG_CONTROL_RETRACT  " Retract mm:"
110 114
 	#define MSG_CONTROL_RETRACTF " Retract  F:"
@@ -112,6 +116,7 @@
112 116
 	#define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
113 117
 	#define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
114 118
 	#define MSG_AUTORETRACT " AutoRetr.:"
119
+        #define MSG_SERIAL_ERROR_MENU_STRUCTURE "Something is wrong in the MenuStructure."
115 120
 
116 121
 // Serial Console Messages
117 122
 
@@ -184,84 +189,90 @@
184 189
 
185 190
 // LCD Menu Messages
186 191
 
187
-	#define WELCOME_MSG MACHINE_NAME " Ready."
192
+	#define WELCOME_MSG MACHINE_NAME " Bereit."
188 193
 
189
-	#define MSG_SD_INSERTED "Card inserted"
190
-	#define MSG_SD_REMOVED "Card removed"
191
-	#define MSG_MAIN " Main \003"
192
-	#define MSG_AUTOSTART " Autostart"
194
+	#define MSG_SD_INSERTED      "SDKarte erkannt"
195
+	#define MSG_SD_REMOVED       "SDKarte entfernt"
196
+	#define MSG_MAIN             " Hauptmneü \003"
197
+	#define MSG_AUTOSTART        " Autostart"
193 198
 	#define MSG_DISABLE_STEPPERS " Stepper abschalten"
194
-	#define MSG_AUTO_HOME " Auto Heim"
195
-	#define MSG_SET_ORIGIN " Position setzen"
196
-	#define MSG_PREHEAT_PLA " Aufheizen PLA"
197
-	#define MSG_PREHEAT_ABS " Aufheizen ABS"
198
-	#define MSG_COOLDOWN " Abkuehlen"
199
-	#define MSG_EXTRUDE " Extrude"
200
-	#define MSG_PREHEAT_PLA " Preheat PLA"
201
-	#define MSG_PREHEAT_ABS " Preheat ABS"
202
-	#define MSG_MOVE_AXIS " Move Axis      \x7E"
203
-	#define MSG_MOVE_AXIS " Achsen verfahren   \x7E"
204
-	#define MSG_SPEED " Geschw:"
205
-	#define MSG_NOZZLE " \002Duese:"
206
-	#define MSG_NOZZLE1 " \002Duese2:"
207
-	#define MSG_NOZZLE2 " \002Duese3:"
208
-	#define MSG_BED " \002Bett:"
209
-	#define MSG_FAN_SPEED " Luefter geschw.:"
210
-	#define MSG_FLOW " Fluss:"
211
-	#define MSG_CONTROL " Kontrolle \003"
212
-	#define MSG_MIN " \002 Min:"
213
-	#define MSG_MAX " \002 Max:"
214
-	#define MSG_FACTOR " \002 Faktor:"
215
-	#define MSG_AUTOTEMP " AutoTemp:"
216
-	#define MSG_ON "Ein "
217
-	#define MSG_OFF "Aus "
218
-	#define MSG_PID_P " PID-P: "
219
-	#define MSG_PID_I " PID-I: "
220
-	#define MSG_PID_D " PID-D: "
221
-	#define MSG_PID_C " PID-C: "
222
-	#define MSG_ACC  " Acc:"
223
-	#define MSG_VXY_JERK " Vxy-jerk: "
224
-	#define MSG_VMAX " Vmax "
225
-	#define MSG_X "x:"
226
-	#define MSG_Y "y:"
227
-	#define MSG_Z "z:"
228
-	#define MSG_E "e:"
229
-	#define MSG_VMIN " Vmin:"
230
-	#define MSG_VTRAV_MIN " VTrav min:"
231
-	#define MSG_AMAX " Amax "
232
-	#define MSG_A_RETRACT " A-retract:"
233
-	#define MSG_XSTEPS " Xsteps/mm:"
234
-	#define MSG_YSTEPS " Ysteps/mm:"
235
-	#define MSG_ZSTEPS " Zsteps/mm:"
236
-	#define MSG_ESTEPS " Esteps/mm:"
237
-	#define MSG_MAIN_WIDE " Main        \003"
238
-	#define MSG_TEMPERATURE_WIDE " Temperatur \x7E"
239
-	#define MSG_MOTION_WIDE " Motion      \x7E"
240
-	#define MSG_STORE_EPROM " EPROM speichern"
241
-	#define MSG_LOAD_EPROM "  EPROM laden"
242
-	#define MSG_RESTORE_FAILSAFE " Standard Konfig."
243
-	#define MSG_REFRESH "\004Refresh"
244
-	#define MSG_WATCH " Beobachten   \003"
245
-	#define MSG_PREPARE " Prepare \x7E"
246
-	#define MSG_PREPARE_ALT " Prepare \003"
247
-	#define MSG_CONTROL_ARROW " Control \x7E"
199
+	#define MSG_AUTO_HOME        " Auto Nullpunkt"
200
+	#define MSG_SET_ORIGIN       " Setze Nullpunkt"
201
+	#define MSG_PREHEAT_PLA      " Vorwärmen PLA"
202
+	#define MSG_PREHEAT_PLA_SETTINGS " Vorwärmen PLA Einstellungen"
203
+	#define MSG_PREHEAT_ABS      " Vorwärmen ABS"
204
+	#define MSG_PREHEAT_ABS_SETTINGS "  Vorwärmen ABS Einstellungen"
205
+	#define MSG_COOLDOWN         " Abkühlen"
206
+	#define MSG_EXTRUDE          " Extrude"
207
+	#define MSG_RETRACT          " Retract"
208
+	#define MSG_MOVE_AXIS        " Achsen bewegen\x7E"
209
+	#define MSG_SPEED            " Geschw:"
210
+	#define MSG_NOZZLE           " \002Düse:"
211
+	#define MSG_NOZZLE1          " \002Düse2:"
212
+	#define MSG_NOZZLE2          " \002Düse3:"
213
+	#define MSG_BED              " \002Bett:"
214
+	#define MSG_FAN_SPEED        " Lüftergeschw.:"
215
+	#define MSG_FLOW             " Fluß:"
216
+	#define MSG_CONTROL          " Einstellungen \003"
217
+	#define MSG_MIN              " \002 Min:"
218
+	#define MSG_MAX              " \002 Max:"
219
+	#define MSG_FACTOR           " \002 Faktor:"
220
+	#define MSG_AUTOTEMP         " AutoTemp:"
221
+	#define MSG_ON               "Ein "
222
+	#define MSG_OFF              "Aus "
223
+	#define MSG_PID_P            " PID-P: "
224
+	#define MSG_PID_I            " PID-I: "
225
+	#define MSG_PID_D            " PID-D: "
226
+	#define MSG_PID_C            " PID-C: "
227
+	#define MSG_ACC              " Acc:"
228
+	#define MSG_VXY_JERK         " Vxy-jerk: "
229
+	#define MSG_VMAX             " Vmax "
230
+	#define MSG_X                "x:"
231
+	#define MSG_Y                "y:"
232
+	#define MSG_Z                "z:"
233
+	#define MSG_E                "e:"
234
+	#define MSG_VMIN             " Vmin:"
235
+	#define MSG_VTRAV_MIN        " VTrav min:"
236
+	#define MSG_AMAX             " Amax "
237
+	#define MSG_A_RETRACT        " A-Retract:"
238
+	#define MSG_XSTEPS           " Xsteps/mm:"
239
+	#define MSG_YSTEPS           " Ysteps/mm:"
240
+	#define MSG_ZSTEPS           " Zsteps/mm:"
241
+	#define MSG_ESTEPS           " Esteps/mm:"
242
+	#define MSG_MAIN_WIDE        " Hauptmenü     \003"
243
+	#define MSG_RECTRACT_WIDE    " Rectract      \x7E"
244
+	#define MSG_WATCH            " Beobachten    \003"
245
+	#define MSG_TEMPERATURE_WIDE " Temperatur    \x7E"
246
+        #define MSG_TEMPERATURE_RTN  " Temperatur    \003"
247
+	#define MSG_MOTION_WIDE      " Bewegung      \x7E"
248
+	#define MSG_STORE_EPROM      " EPROM speichern"
249
+	#define MSG_LOAD_EPROM       " EPROM laden"
250
+	#define MSG_RESTORE_FAILSAFE " Standardkonfig."
251
+	#define MSG_REFRESH          "\004Aktualisieren"
252
+	#define MSG_PREPARE          " Vorbereitung  \x7E"
253
+	#define MSG_PREPARE_ALT      " Vorbereitung  \003"
254
+	#define MSG_CONTROL_ARROW    " Einstellungen \x7E"
255
+	#define MSG_TUNE             " Justierung    \x7E"
256
+	#define MSG_PAUSE_PRINT      " Druck anhalten\x7E"
257
+	#define MSG_RESUME_PRINT     " Druck fortsetz\x7E"
258
+	#define MSG_STOP_PRINT       " Druck stoppen \x7E"
259
+	#define MSG_CARD_MENU        " SDKarten Menü \x7E"
260
+	#define MSG_NO_CARD          " Keine SDKarte"
261
+	#define MSG_DWELL            "Warten..."		
262
+	#define MSG_USERWAIT         "Warte auf Nutzer..."
263
+	#define MSG_NO_MOVE          "Kein Zug."
264
+	#define MSG_PART_RELEASE     "Stepper tlw frei"
265
+	#define MSG_KILLED           "KILLED"
266
+	#define MSG_STOPPED          "GESTOPPT"
267
+	#define MSG_STEPPER_RELEASED "Stepper frei"
268
+        #define MSG_CONTROL_RETRACT  " Retract mm:"
269
+        #define MSG_CONTROL_RETRACTF " Retract  F:"
270
+        #define MSG_CONTROL_RETRACT_ZLIFT " Hop mm:"
271
+        #define MSG_CONTROL_RETRACT_RECOVER " UnRet +mm:"
272
+        #define MSG_CONTROL_RETRACT_RECOVERF " UnRet  F:"
273
+        #define MSG_AUTORETRACT      " AutoRetr.:"
274
+	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Fehler in Menüstruktur."
248 275
 	
249
-	#define MSG_TUNE " Tune    \x7E"
250
-	#define MSG_STOP_PRINT " Druck stoppen   \x7E"
251
-	#define MSG_CARD_MENU " SDKarten Menue    \x7E"
252
-	#define MSG_NO_CARD " Keine SDKarte"
253
-	#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Fehler in der  Menuestruktur."
254
-	#define MSG_DWELL "DWELL..."		
255
-	#define MSG_NO_MOVE "No move."
256
-	#define MSG_PART_RELEASE "Partial Release"
257
-	#define MSG_KILLED "KILLED. "
258
-	#define MSG_STOPPED "STOPPED. "
259
-	#define MSG_PREHEAT_PLA " Preheat PLA"
260
-	#define MSG_PREHEAT_ABS " Preheat ABS"
261
-	#define MSG_STEPPER_RELEASED "Released."
262
-	
263
-
264
-
265 276
 // Serial Console Messages
266 277
 
267 278
 	#define MSG_Enqueing "enqueing \""
@@ -343,8 +354,11 @@
343 354
 #define MSG_SET_ORIGIN " Establecer Cero"
344 355
 #define MSG_COOLDOWN " Enfriar"
345 356
 #define MSG_EXTRUDE " Extruir"
357
+#define MSG_RETRACT " Retract"
346 358
 #define MSG_PREHEAT_PLA " Precalentar PLA"
359
+#define MSG_PREHEAT_PLA_SETTINGS " Precalentar PLA Setting"
347 360
 #define MSG_PREHEAT_ABS " Precalentar ABS"
361
+#define MSG_PREHEAT_ABS_SETTINGS " Precalentar ABS Setting"
348 362
 #define MSG_MOVE_AXIS " Mover Ejes      \x7E"
349 363
 #define MSG_SPEED " Velocidad:"
350 364
 #define MSG_NOZZLE " \002Nozzle:"
@@ -382,6 +396,7 @@
382 396
 #define MSG_MAIN_WIDE " Menu Principal  \003"
383 397
 #define MSG_RECTRACT_WIDE " Retraer         \x7E"
384 398
 #define MSG_TEMPERATURE_WIDE " Temperatura     \x7E"
399
+#define MSG_TEMPERATURE_RTN  " Temperatura     \003"
385 400
 #define MSG_MOTION_WIDE " Movimiento      \x7E"
386 401
 #define MSG_STORE_EPROM " Guardar Memoria"
387 402
 #define MSG_LOAD_EPROM " Cargar Memoria"
@@ -393,18 +408,17 @@
393 408
 #define MSG_CONTROL_ARROW " Control  \x7E"
394 409
 #define MSG_RETRACT_ARROW " Control  \x7E"
395 410
 #define MSG_TUNE " Ajustar \x7E"
411
+#define MSG_PAUSE_PRINT " Pause Print \x7E"
412
+#define MSG_RESUME_PRINT " Resume Print \x7E"
396 413
 #define MSG_STOP_PRINT " Detener Impresion \x7E"
397 414
 #define MSG_CARD_MENU " Menu de SD    \x7E"
398 415
 #define MSG_NO_CARD " No hay Tarjeta SD"
399
-#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
400 416
 #define MSG_DWELL "Reposo..."
401 417
 #define MSG_USERWAIT "Esperando Ordenes..."
402 418
 #define MSG_NO_MOVE "Sin movimiento"
403 419
 #define MSG_PART_RELEASE "Desacople Parcial"
404 420
 #define MSG_KILLED "PARADA DE EMERGENCIA. "
405 421
 #define MSG_STOPPED "PARADA. "
406
-#define MSG_PREHEAT_PLA " Precalentar PLA"
407
-#define MSG_PREHEAT_ABS " Precalentar ABS"
408 422
 #define MSG_STEPPER_RELEASED "Desacoplada."
409 423
 #define MSG_CONTROL_RETRACT  " Retraer mm:"
410 424
 #define MSG_CONTROL_RETRACTF " Retraer  F:"
@@ -412,6 +426,7 @@
412 426
 #define MSG_CONTROL_RETRACT_RECOVER " DesRet +mm:"
413 427
 #define MSG_CONTROL_RETRACT_RECOVERF " DesRet F:"
414 428
 #define MSG_AUTORETRACT " AutoRetr.:"
429
+#define MSG_SERIAL_ERROR_MENU_STRUCTURE "Hay un error en la estructura del menu"
415 430
 
416 431
 // Serial Console Messages
417 432
 

+ 1
- 1
Marlin/planner.cpp View File

@@ -501,7 +501,7 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
501 501
   // Rest here until there is room in the buffer.
502 502
   while(block_buffer_tail == next_buffer_head) { 
503 503
     manage_heater(); 
504
-    manage_inactivity(1); 
504
+    manage_inactivity(); 
505 505
     LCD_STATUS;
506 506
   }
507 507
 

+ 1
- 1
Marlin/stepper.cpp View File

@@ -899,7 +899,7 @@ void st_synchronize()
899 899
 {
900 900
     while( blocks_queued()) {
901 901
     manage_heater();
902
-    manage_inactivity(1);
902
+    manage_inactivity();
903 903
     LCD_STATUS;
904 904
   }
905 905
 }

+ 3
- 0
Marlin/ultralcd.h View File

@@ -144,12 +144,14 @@
144 144
   #define LCD_INIT lcd_init();
145 145
   #define LCD_MESSAGE(x) lcd_status(x);
146 146
   #define LCD_MESSAGEPGM(x) lcd_statuspgm(MYPGM(x));
147
+  #define LCD_ALERTMESSAGEPGM(x) lcd_alertstatuspgm(MYPGM(x));
147 148
   #define LCD_STATUS lcd_status()
148 149
 #else //no lcd
149 150
   #define LCD_INIT
150 151
   #define LCD_STATUS
151 152
   #define LCD_MESSAGE(x)
152 153
   #define LCD_MESSAGEPGM(x)
154
+  #define LCD_ALERTMESSAGEPGM(x)
153 155
   FORCE_INLINE void lcd_status() {};
154 156
 
155 157
   #define CLICKED false
@@ -157,6 +159,7 @@
157 159
 #endif 
158 160
   
159 161
 void lcd_statuspgm(const char* message);
162
+void lcd_alertstatuspgm(const char* message);
160 163
   
161 164
 char *ftostr3(const float &x);
162 165
 char *itostr2(const uint8_t &x);

+ 9
- 3
Marlin/ultralcd.pde View File

@@ -92,6 +92,12 @@ void lcd_statuspgm(const char* message)
92 92
   *target=0;
93 93
 }
94 94
 
95
+void lcd_alertstatuspgm(const char* message)
96
+{
97
+  lcd_statuspgm(message); 
98
+  menu.showStatus(); 
99
+}
100
+
95 101
 FORCE_INLINE void clear()
96 102
 {
97 103
   lcd.clear();
@@ -2922,7 +2928,7 @@ char *ftostr31(const float &x)
2922 2928
 
2923 2929
 char *ftostr32(const float &x)
2924 2930
 {
2925
-  int xx=x*100;
2931
+  long xx=x*100;
2926 2932
   conv[0]=(xx>=0)?'+':'-';
2927 2933
   xx=abs(xx);
2928 2934
   conv[1]=(xx/100)%10+'0';
@@ -2967,7 +2973,7 @@ char *itostr4(const int &xx)
2967 2973
 //  convert float to string with +1234.5 format
2968 2974
 char *ftostr51(const float &x)
2969 2975
 {
2970
-  int xx=x*10;
2976
+  long xx=x*10;
2971 2977
   conv[0]=(xx>=0)?'+':'-';
2972 2978
   xx=abs(xx);
2973 2979
   conv[1]=(xx/10000)%10+'0';
@@ -2983,7 +2989,7 @@ char *ftostr51(const float &x)
2983 2989
 //  convert float to string with +123.45 format
2984 2990
 char *ftostr52(const float &x)
2985 2991
 {
2986
-  int xx=x*100;
2992
+  long xx=x*100;
2987 2993
   conv[0]=(xx>=0)?'+':'-';
2988 2994
   xx=abs(xx);
2989 2995
   conv[1]=(xx/10000)%10+'0';

Loading…
Cancel
Save