Browse Source

unloading filaments and M600 messages updated

PavelSindler 8 years ago
parent
commit
57ef9cf59b
5 changed files with 14 additions and 4 deletions
  1. 4 0
      Firmware/Marlin_main.cpp
  2. 1 1
      Firmware/language_all.cpp
  3. 3 1
      Firmware/language_es.h
  4. 2 1
      Firmware/language_pl.h
  5. 4 1
      Firmware/ultralcd.cpp

+ 4 - 0
Firmware/Marlin_main.cpp

@@ -4978,6 +4978,7 @@ case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
     #ifdef FILAMENTCHANGEENABLE
     case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
     {
+
 		st_synchronize();
 		float target[4];
 		float lastpos[4];
@@ -5058,6 +5059,9 @@ case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
           #endif
         }
         plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], FILAMENTCHANGE_XYFEED, active_extruder);
+		st_synchronize();
+		custom_message = true;
+		lcd_setstatuspgm(MSG_UNLOADING_FILAMENT);
 
         // Unload filament
         if(code_seen('L'))

+ 1 - 1
Firmware/language_all.cpp

@@ -1959,7 +1959,7 @@ const char MSG_PRESS_EN[] PROGMEM = "and press the knob";
 const char MSG_PRESS_CZ[] PROGMEM = "a stisknete tlacitko";
 const char MSG_PRESS_IT[] PROGMEM = "e cliccare manopola";
 const char MSG_PRESS_ES[] PROGMEM = "Pulsar el mando";
-const char MSG_PRESS_PL[] PROGMEM = "Nacisnij przycisk";
+const char MSG_PRESS_PL[] PROGMEM = "i nacisnij przycisk";
 const char MSG_PRESS_DE[] PROGMEM = "und Knopf druecken";
 const char * const MSG_PRESS_LANG_TABLE[LANG_NUM] PROGMEM = {
 	MSG_PRESS_EN,

+ 3 - 1
Firmware/language_es.h

@@ -270,4 +270,6 @@
 #define MSG_TEMP_CALIBRATION							"Cal. temp.          "
 #define MSG_TEMP_CALIBRATION_DONE						"Calibracon temperatura terminada. Presionar para continuar."
 #define MSG_TEMP_CALIBRATION_ON							"Cal. temp. [ON]"
-#define MSG_TEMP_CALIBRATION_OFF						"Cal. temp. [OFF]"
+#define MSG_TEMP_CALIBRATION_OFF						"Cal. temp. [OFF]"
+
+#define MSG_PREPARE_FILAMENT							"Preparar filamento"

+ 2 - 1
Firmware/language_pl.h

@@ -276,4 +276,5 @@
 #define MSG_TEMP_CALIBRATION									"Ciepl. kal.         "
 #define MSG_TEMP_CALIBRATION_DONE								"Cieplna kalibracja zakonczona. Kontynuuj przyciskiem"
 #define MSG_TEMP_CALIBRATION_ON									"Ciepl. kal. [ON]"
-#define MSG_TEMP_CALIBRATION_OFF								"Ciepl. kal. [OFF]"
+#define MSG_TEMP_CALIBRATION_OFF								"Ciepl. kal. [OFF]"
+#define MSG_PREPARE_FILAMENT									"Przygotuj filament"

+ 4 - 1
Firmware/ultralcd.cpp

@@ -3122,7 +3122,10 @@ static void extr_unload() { //unloads filament
 		lcd_implementation_clear();
 		lcd_display_message_fullscreen_P(PSTR(""));
 		max_feedrate[E_AXIS] = 50;
-		lcd.setCursor(0, 1); lcd_printPGM(MSG_PLEASE_WAIT);
+		lcd.setCursor(0, 0); lcd_printPGM(MSG_UNLOADING_FILAMENT);
+		lcd.print(" ");
+		lcd.print(snmm_extruder + 1);
+		lcd.setCursor(0, 2); lcd_printPGM(MSG_PLEASE_WAIT);
 		if (current_position[Z_AXIS] < 15) {
 			current_position[Z_AXIS] += 15; //lifting in Z direction to make space for extrusion
 			plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 25, active_extruder);