diff --git a/Firmware/messages.c b/Firmware/messages.c index 73bcf13a..1ad5fe33 100644 --- a/Firmware/messages.c +++ b/Firmware/messages.c @@ -90,7 +90,7 @@ const char MSG_STEALTH[] PROGMEM_I1 = ISTR("Stealth"); //// const char MSG_STEEL_SHEET_CHECK[] PROGMEM_I1 = ISTR("Is steel sheet on heatbed?"); ////c=20 r=2 const char MSG_STOP_PRINT[] PROGMEM_I1 = ISTR("Stop print"); //// const char MSG_STOPPED[] PROGMEM_I1 = ISTR("STOPPED. "); //// -const char MSG_TEMP_CALIBRATION[] PROGMEM_I1 = ISTR("Temp. cal. "); ////c=20 r=1 +const char MSG_TEMP_CALIBRATION[] PROGMEM_I1 = ISTR("Temp. cal."); ////c=12 r=1 const char MSG_TEMP_CALIBRATION_DONE[] PROGMEM_I1 = ISTR("Temperature calibration is finished and active. Temp. calibration can be disabled in menu Settings->Temp. cal."); ////c=20 r=12 const char MSG_UNLOAD_FILAMENT[] PROGMEM_I1 = ISTR("Unload filament"); ////c=17 const char MSG_UNLOADING_FILAMENT[] PROGMEM_I1 = ISTR("Unloading filament"); ////c=20 r=1 diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index ddb83e40..13c48325 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -838,12 +838,13 @@ void lcdui_print_status_line(void) break; case CustomMsg::TempCal: // PINDA temp calibration in progress { + char statusLine[LCD_WIDTH + 1]; + sprintf_P(statusLine, PSTR("%-20S"), _T(MSG_TEMP_CALIBRATION)); char progress[4]; + sprintf_P(progress, PSTR("%d/6"), custom_message_state); + memcpy(statusLine + 12, progress, sizeof(progress) - 1); lcd_set_cursor(0, 3); - lcd_puts_P(_T(MSG_TEMP_CALIBRATION)); - lcd_set_cursor(12, 3); - sprintf(progress, "%d/6", custom_message_state); - lcd_print(progress); + lcd_print(statusLine); } break; case CustomMsg::TempCompPreheat: // temp compensation preheat @@ -5742,10 +5743,7 @@ static void lcd_settings_menu() MENU_ITEM_SUBMENU_P(_i("Lin. correction"), lcd_settings_linearity_correction_menu); #endif //LINEARITY_CORRECTION && TMC2130 - if (temp_cal_active == false) - MENU_ITEM_FUNCTION_P(_i("Temp. cal. [off]"), lcd_temp_calibration_set);////MSG_TEMP_CALIBRATION_OFF c=20 r=1 - else - MENU_ITEM_FUNCTION_P(_i("Temp. cal. [on]"), lcd_temp_calibration_set);////MSG_TEMP_CALIBRATION_ON c=20 r=1 + MENU_ITEM_TOGGLE_P(_T(MSG_TEMP_CALIBRATION), temp_cal_active ? _T(MSG_ON) : _T(MSG_OFF), lcd_temp_calibration_set); #ifdef HAS_SECOND_SERIAL_PORT MENU_ITEM_TOGGLE_P(_T(MSG_RPI_PORT), (selectedSerialPort == 0) ? _T(MSG_OFF) : _T(MSG_ON), lcd_second_serial_set); diff --git a/lang/lang_en.txt b/lang/lang_en.txt index b6861f96..2f3bbfc8 100755 --- a/lang/lang_en.txt +++ b/lang/lang_en.txt @@ -750,18 +750,12 @@ # "Select filament:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " - -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." # "Select temperature which matches your material." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" diff --git a/lang/lang_en_cz.txt b/lang/lang_en_cz.txt index a5c5b825..aed952ba 100755 --- a/lang/lang_en_cz.txt +++ b/lang/lang_en_cz.txt @@ -1002,22 +1002,14 @@ "Select filament:" "Zvolte filament:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " -"Tepl. kal. " - -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Tepl. kal. [zap]" +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." +"Tepl. kal." # "Select temperature which matches your material." "Zvolte teplotu, ktera odpovida vasemu materialu." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Tepl. kal. [vyp]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Teplot. kalibrace" diff --git a/lang/lang_en_de.txt b/lang/lang_en_de.txt index 2da2b7a8..bf850c6a 100755 --- a/lang/lang_en_de.txt +++ b/lang/lang_en_de.txt @@ -1002,22 +1002,14 @@ "Select filament:" "Filament auswaehlen:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " -"Temp Kalib. " - -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Temp. Kal. [an]" +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." +"Temp Kalib." # "Select temperature which matches your material." "Waehlen Sie die Temperatur, die zu Ihrem Material passt." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Temp. Kal. [aus]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Temp. kalibrieren" diff --git a/lang/lang_en_es.txt b/lang/lang_en_es.txt index 796fc47e..0b29393a 100755 --- a/lang/lang_en_es.txt +++ b/lang/lang_en_es.txt @@ -1002,22 +1002,14 @@ "Select filament:" "Selecciona filamento:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " -"Cal. temp. " - -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Cal. temp. [on]" +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." +"Cal. temp." # "Select temperature which matches your material." "Selecciona la temperatura adecuada a tu material." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Cal. temp. [off]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Calibracion temp." diff --git a/lang/lang_en_fr.txt b/lang/lang_en_fr.txt index 0b7ccebe..9f29192a 100755 --- a/lang/lang_en_fr.txt +++ b/lang/lang_en_fr.txt @@ -999,22 +999,14 @@ "Select filament:" "Selectionnez le filament:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." "Calib. Temp." -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Calib. Temp. [on]" - # "Select temperature which matches your material." "Selectionnez la temperature qui correspond a votre materiau." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Calib. Temp.[off]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Calibration temp." diff --git a/lang/lang_en_it.txt b/lang/lang_en_it.txt index dac04865..c3304400 100755 --- a/lang/lang_en_it.txt +++ b/lang/lang_en_it.txt @@ -1001,22 +1001,14 @@ "Select filament:" "Seleziona il filamento:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " -"Calib. temp. " - -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Calib. temp. [on]" +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." +"Calib. temp." # "Select temperature which matches your material." "Seleziona la temperatura appropriata per il tuo materiale." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Calib. temp.[off]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Calib. Temp." diff --git a/lang/lang_en_pl.txt b/lang/lang_en_pl.txt index e816bbf8..6e86ff0c 100755 --- a/lang/lang_en_pl.txt +++ b/lang/lang_en_pl.txt @@ -1000,22 +1000,14 @@ "Select filament:" "Wybierz filament:" -#MSG_TEMP_CALIBRATION c=20 r=1 -"Temp. cal. " +#MSG_TEMP_CALIBRATION c=12 r=1 +"Temp. cal." "Kalibracja temp." -#MSG_TEMP_CALIBRATION_ON c=20 r=1 -"Temp. cal. [on]" -"Kalibr.temp. [wl]" - # "Select temperature which matches your material." "Wybierz temperature, ktora odpowiada Twojemu filamentowi." -#MSG_TEMP_CALIBRATION_OFF c=20 r=1 -"Temp. cal. [off]" -"Kalibr.temp.[wyl]" - #MSG_CALIBRATION_PINDA_MENU c=17 r=1 "Temp. calibration" "Kalibracja temp."