|
@@ -649,7 +649,7 @@ void lcdui_print_status_line(void)
|
|
|
if (custom_message_state > 3 && custom_message_state <= 10 ) {
|
|
|
lcd_set_cursor(0, 3);
|
|
|
lcd_space(19);
|
|
|
- lcd_puts_at_P(0, 3, _i("Calibration done"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("Calibration done"));
|
|
|
custom_message_state--;
|
|
|
}
|
|
|
}
|
|
@@ -676,7 +676,7 @@ void lcdui_print_status_line(void)
|
|
|
lcd_print(statusLine);
|
|
|
break;
|
|
|
case CustomMsg::TempCompPreheat:
|
|
|
- lcd_puts_at_P(0, 3, _i("PINDA Heating"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("PINDA Heating"));
|
|
|
if (custom_message_state <= PINDA_HEAT_T) {
|
|
|
lcd_puts_P(PSTR(": "));
|
|
|
lcd_print(custom_message_state);
|
|
@@ -900,7 +900,7 @@ void lcd_commands()
|
|
|
{
|
|
|
if (!blocks_queued() && !homing_flag)
|
|
|
{
|
|
|
- lcd_setstatuspgm(_i("Print paused"));
|
|
|
+ lcd_setstatuspgm(_i("Print paused"));
|
|
|
lcd_commands_type = LcdCommands::Idle;
|
|
|
lcd_commands_step = 0;
|
|
|
long_pause();
|
|
@@ -1320,13 +1320,13 @@ void lcd_commands()
|
|
|
strcat(cmd1, ftostr3(pid_temp));
|
|
|
|
|
|
enquecommand(cmd1);
|
|
|
- lcd_setstatuspgm(_i("PID cal. "));
|
|
|
+ lcd_setstatuspgm(_i("PID cal. "));
|
|
|
lcd_commands_step = 2;
|
|
|
}
|
|
|
if (lcd_commands_step == 2 && pid_tuning_finished) {
|
|
|
pid_tuning_finished = false;
|
|
|
custom_message_state = 0;
|
|
|
- lcd_setstatuspgm(_i("PID cal. finished"));
|
|
|
+ lcd_setstatuspgm(_i("PID cal. finished"));
|
|
|
setAllTargetHotends(0);
|
|
|
if (_Kp != 0 || _Ki != 0 || _Kd != 0) {
|
|
|
strcpy(cmd1, "M301 P");
|
|
@@ -1425,8 +1425,8 @@ static void pgmtext_with_colon(const char *ipgmLabel, char *dst, uint8_t dstSize
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1440,8 +1440,8 @@ void lcd_menu_extruder_info()
|
|
|
lcd_home();
|
|
|
static const size_t maxChars = 12;
|
|
|
char nozzle[maxChars], print[maxChars];
|
|
|
- pgmtext_with_colon(_i("Nozzle FAN"), nozzle, maxChars);
|
|
|
- pgmtext_with_colon(_i("Print FAN"), print, maxChars);
|
|
|
+ pgmtext_with_colon(_i("Nozzle FAN"), nozzle, maxChars);
|
|
|
+ pgmtext_with_colon(_i("Print FAN"), print, maxChars);
|
|
|
lcd_printf_P(_N("%s %4d RPM\n" "%s %4d RPM\n"), nozzle, 60*fan_speed[0], print, 60*fan_speed[1] );
|
|
|
menu_back_if_clicked();
|
|
|
}
|
|
@@ -1454,7 +1454,7 @@ static uint16_t __attribute__((noinline)) clamp999(uint16_t v){
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1465,7 +1465,7 @@ static void lcd_menu_fails_stats_mmu()
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_mmu_print);
|
|
|
- MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_mmu_total);
|
|
|
+ MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_mmu_total);
|
|
|
MENU_END();
|
|
|
}
|
|
|
|
|
@@ -1485,9 +1485,9 @@ static void lcd_menu_fails_stats_mmu_print()
|
|
|
lcd_timeoutToStatus.stop();
|
|
|
lcd_home();
|
|
|
lcd_printf_P(PSTR("%S\n" " %-16.16S%-3d\n" " %-16.16S%-3d"),
|
|
|
- _T(MSG_LAST_PRINT_FAILURES),
|
|
|
- _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
|
|
|
- _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL) ));
|
|
|
+ _T(MSG_LAST_PRINT_FAILURES),
|
|
|
+ _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
|
|
|
+ _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL) ));
|
|
|
menu_back_if_clicked_fb();
|
|
|
}
|
|
|
|
|
@@ -1498,7 +1498,7 @@ static void lcd_menu_fails_stats_mmu_print()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1508,10 +1508,10 @@ static void lcd_menu_fails_stats_mmu_total()
|
|
|
lcd_timeoutToStatus.stop();
|
|
|
lcd_home();
|
|
|
lcd_printf_P(PSTR("%S\n" " %-16.16S%-3d\n" " %-16.16S%-3d\n" " %-16.16S%-3d"),
|
|
|
- _T(MSG_TOTAL_FAILURES),
|
|
|
- _T(MSG_MMU_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) ),
|
|
|
- _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_LOAD_FAIL_TOT) ),
|
|
|
- _i("MMU power fails"), clamp999( mmu_power_failures ));
|
|
|
+ _T(MSG_TOTAL_FAILURES),
|
|
|
+ _T(MSG_MMU_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) ),
|
|
|
+ _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_LOAD_FAIL_TOT) ),
|
|
|
+ _i("MMU power fails"), clamp999( mmu_power_failures ));
|
|
|
menu_back_if_clicked_fb();
|
|
|
}
|
|
|
|
|
@@ -1534,10 +1534,10 @@ static void lcd_menu_fails_stats_total()
|
|
|
lcd_timeoutToStatus.stop();
|
|
|
lcd_home();
|
|
|
lcd_printf_P(failStatsFmt,
|
|
|
- _T(MSG_TOTAL_FAILURES),
|
|
|
- _T(MSG_POWER_FAILURES), clamp999( eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) ),
|
|
|
- _T(MSG_FIL_RUNOUTS), clamp999( eeprom_read_word((uint16_t*)EEPROM_FERROR_COUNT_TOT) ),
|
|
|
- _T(MSG_CRASH),
|
|
|
+ _T(MSG_TOTAL_FAILURES),
|
|
|
+ _T(MSG_POWER_FAILURES), clamp999( eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) ),
|
|
|
+ _T(MSG_FIL_RUNOUTS), clamp999( eeprom_read_word((uint16_t*)EEPROM_FERROR_COUNT_TOT) ),
|
|
|
+ _T(MSG_CRASH),
|
|
|
clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_X_TOT) ),
|
|
|
clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_Y_TOT) ));
|
|
|
menu_back_if_clicked_fb();
|
|
@@ -1557,10 +1557,10 @@ static void lcd_menu_fails_stats_total()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1575,20 +1575,20 @@ static void lcd_menu_fails_stats_print()
|
|
|
lcd_home();
|
|
|
#ifndef PAT9125
|
|
|
lcd_printf_P(failStatsFmt,
|
|
|
- _T(MSG_LAST_PRINT_FAILURES),
|
|
|
- _T(MSG_POWER_FAILURES), power,
|
|
|
- _T(MSG_FIL_RUNOUTS), filam,
|
|
|
- _T(MSG_CRASH), crashX, crashY);
|
|
|
+ _T(MSG_LAST_PRINT_FAILURES),
|
|
|
+ _T(MSG_POWER_FAILURES), power,
|
|
|
+ _T(MSG_FIL_RUNOUTS), filam,
|
|
|
+ _T(MSG_CRASH), crashX, crashY);
|
|
|
#else
|
|
|
|
|
|
lcd_printf_P(PSTR("%S\n"
|
|
|
" %-16.16S%-3d\n"
|
|
|
" %-7.7S H %-3d S %-3d\n"
|
|
|
" %-7.7S X %-3d Y %-3d"),
|
|
|
- _T(MSG_LAST_PRINT_FAILURES),
|
|
|
- _T(MSG_POWER_FAILURES), power,
|
|
|
- _i("Runouts"), filam, fsensor_softfail,
|
|
|
- _T(MSG_CRASH), crashX, crashY);
|
|
|
+ _T(MSG_LAST_PRINT_FAILURES),
|
|
|
+ _T(MSG_POWER_FAILURES), power,
|
|
|
+ _i("Runouts"), filam, fsensor_softfail,
|
|
|
+ _T(MSG_CRASH), crashX, crashY);
|
|
|
#endif
|
|
|
menu_back_if_clicked_fb();
|
|
|
}
|
|
@@ -1601,7 +1601,7 @@ static void lcd_menu_fails_stats_print()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1612,8 +1612,8 @@ static void lcd_menu_fails_stats()
|
|
|
{
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
- MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_print);
|
|
|
- MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_total);
|
|
|
+ MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_print);
|
|
|
+ MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_total);
|
|
|
MENU_END();
|
|
|
}
|
|
|
|
|
@@ -1642,10 +1642,10 @@ static void lcd_menu_fails_stats()
|
|
|
uint16_t filamentTotal = clamp999( eeprom_read_word((uint16_t*)EEPROM_FERROR_COUNT_TOT) );
|
|
|
lcd_home();
|
|
|
lcd_printf_P(failStatsFmt,
|
|
|
- _T(MSG_LAST_PRINT_FAILURES),
|
|
|
- _T(MSG_FIL_RUNOUTS), filamentLast,
|
|
|
- _T(MSG_TOTAL_FAILURES),
|
|
|
- _T(MSG_FIL_RUNOUTS), filamentTotal);
|
|
|
+ _T(MSG_LAST_PRINT_FAILURES),
|
|
|
+ _T(MSG_FIL_RUNOUTS), filamentLast,
|
|
|
+ _T(MSG_TOTAL_FAILURES),
|
|
|
+ _T(MSG_FIL_RUNOUTS), filamentTotal);
|
|
|
|
|
|
menu_back_if_clicked();
|
|
|
}
|
|
@@ -1671,10 +1671,10 @@ extern char* __malloc_heap_end;
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1682,10 +1682,10 @@ static void lcd_menu_debug()
|
|
|
{
|
|
|
#ifdef DEBUG_STACK_MONITOR
|
|
|
lcd_home();
|
|
|
- lcd_printf_P(PSTR("RAM statistics\n"
|
|
|
- " SP_min: 0x%04x\n"
|
|
|
- " heap_start: 0x%04x\n"
|
|
|
- " heap_end: 0x%04x"), SP_min, __malloc_heap_start, __malloc_heap_end);
|
|
|
+ lcd_printf_P(PSTR("RAM statistics\n"
|
|
|
+ " SP_min: 0x%04x\n"
|
|
|
+ " heap_start: 0x%04x\n"
|
|
|
+ " heap_end: 0x%04x"), SP_min, __malloc_heap_start, __malloc_heap_end);
|
|
|
#endif
|
|
|
|
|
|
menu_back_if_clicked_fb();
|
|
@@ -1706,10 +1706,10 @@ static void lcd_menu_temperatures_line(const char *ipgmLabel, int value){
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1718,13 +1718,13 @@ static void lcd_menu_temperatures()
|
|
|
{
|
|
|
lcd_timeoutToStatus.stop();
|
|
|
lcd_home();
|
|
|
- lcd_menu_temperatures_line( _T(MSG_NOZZLE), (int)current_temperature[0] );
|
|
|
- lcd_menu_temperatures_line( _T(MSG_BED), (int)current_temperature_bed );
|
|
|
+ lcd_menu_temperatures_line( _T(MSG_NOZZLE), (int)current_temperature[0] );
|
|
|
+ lcd_menu_temperatures_line( _T(MSG_BED), (int)current_temperature_bed );
|
|
|
#ifdef AMBIENT_THERMISTOR
|
|
|
- lcd_menu_temperatures_line( _i("Ambient"), (int)current_temperature_ambient );
|
|
|
+ lcd_menu_temperatures_line( _i("Ambient"), (int)current_temperature_ambient );
|
|
|
#endif
|
|
|
#ifdef PINDA_THERMISTOR
|
|
|
- lcd_menu_temperatures_line( _i("PINDA"), (int)current_temperature_pinda );
|
|
|
+ lcd_menu_temperatures_line( _T(MSG_PINDA), (int)current_temperature_pinda );
|
|
|
#endif
|
|
|
menu_back_if_clicked();
|
|
|
}
|
|
@@ -1739,9 +1739,9 @@ static void lcd_menu_temperatures()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1805,9 +1805,9 @@ static void lcd_preheat_menu()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1816,7 +1816,7 @@ static void lcd_preheat_menu()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1824,21 +1824,21 @@ static void lcd_preheat_menu()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1869,7 +1869,7 @@ static void lcd_preheat_menu()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1916,15 +1916,15 @@ static void lcd_support_menu()
|
|
|
MENU_ITEM_BACK_P(PSTR("FW - " FW_version));
|
|
|
}*/
|
|
|
|
|
|
- MENU_ITEM_BACK_P(_i("prusa3d.com"));
|
|
|
- MENU_ITEM_BACK_P(_i("forum.prusa3d.com"));
|
|
|
- MENU_ITEM_BACK_P(_i("howto.prusa3d.com"));
|
|
|
+ MENU_ITEM_BACK_P(_i("prusa3d.com"));
|
|
|
+ MENU_ITEM_BACK_P(_i("forum.prusa3d.com"));
|
|
|
+ MENU_ITEM_BACK_P(_i("howto.prusa3d.com"));
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
MENU_ITEM_BACK_P(PSTR(FILAMENT_SIZE));
|
|
|
MENU_ITEM_BACK_P(PSTR(ELECTRONICS));
|
|
|
MENU_ITEM_BACK_P(PSTR(NOZZLE_TYPE));
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
- MENU_ITEM_BACK_P(_i("Date:"));
|
|
|
+ MENU_ITEM_BACK_P(_i("Date:"));
|
|
|
MENU_ITEM_BACK_P(PSTR(__DATE__));
|
|
|
|
|
|
#ifdef IR_SENSOR_ANALOG
|
|
@@ -1936,15 +1936,15 @@ static void lcd_support_menu()
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
if (mmu_enabled)
|
|
|
{
|
|
|
- MENU_ITEM_BACK_P(_i("MMU2 connected"));
|
|
|
- MENU_ITEM_BACK_P(PSTR(" FW:"));
|
|
|
+ MENU_ITEM_BACK_P(_i("MMU2 connected"));
|
|
|
+ MENU_ITEM_BACK_P(PSTR(" FW:"));
|
|
|
if (((menu_item - 1) == menu_line) && lcd_draw_update)
|
|
|
{
|
|
|
lcd_set_cursor(6, menu_row);
|
|
|
if ((mmu_version > 0) && (mmu_buildnr > 0))
|
|
|
lcd_printf_P(PSTR("%d.%d.%d-%d"), mmu_version/100, mmu_version%100/10, mmu_version%10, mmu_buildnr);
|
|
|
else
|
|
|
- lcd_puts_P(_i("unknown"));
|
|
|
+ lcd_puts_P(_i("unknown"));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -1954,7 +1954,7 @@ static void lcd_support_menu()
|
|
|
|
|
|
if (_md->is_flash_air) {
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
- MENU_ITEM_BACK_P(PSTR("FlashAir IP Addr:"));
|
|
|
+ MENU_ITEM_BACK_P(PSTR("FlashAir IP Addr:"));
|
|
|
MENU_ITEM_BACK_P(PSTR(" "));
|
|
|
if (((menu_item - 1) == menu_line) && lcd_draw_update) {
|
|
|
lcd_set_cursor(2, menu_row);
|
|
@@ -1967,7 +1967,7 @@ static void lcd_support_menu()
|
|
|
if (IP_address) {
|
|
|
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
- MENU_ITEM_BACK_P(PSTR("Printer IP Addr:"));
|
|
|
+ MENU_ITEM_BACK_P(PSTR("Printer IP Addr:"));
|
|
|
MENU_ITEM_BACK_P(PSTR(" "));
|
|
|
if (((menu_item - 1) == menu_line) && lcd_draw_update) {
|
|
|
lcd_set_cursor(2, menu_row);
|
|
@@ -1980,21 +1980,21 @@ static void lcd_support_menu()
|
|
|
MENU_ITEM_BACK_P(STR_SEPARATOR);
|
|
|
MENU_ITEM_SUBMENU_P(_i("XYZ cal. details"), lcd_menu_xyz_y_min);
|
|
|
MENU_ITEM_SUBMENU_P(_i("Extruder info"), lcd_menu_extruder_info);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Sensor info"), lcd_menu_show_sensors_state);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Sensor info"), lcd_menu_show_sensors_state);
|
|
|
|
|
|
#ifdef TMC2130
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_BELT_STATUS), lcd_menu_belt_status);
|
|
|
#endif
|
|
|
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Temperatures"), lcd_menu_temperatures);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Temperatures"), lcd_menu_temperatures);
|
|
|
|
|
|
#if defined (VOLT_BED_PIN) || defined (VOLT_PWR_PIN)
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Voltages"), lcd_menu_voltages);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Voltages"), lcd_menu_voltages);
|
|
|
#endif
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_BUILD
|
|
|
- MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);
|
|
|
+ MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);
|
|
|
#endif
|
|
|
|
|
|
#endif
|
|
@@ -2057,18 +2057,18 @@ uint8_t nLevel;
|
|
|
|
|
|
lcd_set_cursor(0,0);
|
|
|
lcdui_print_temp(LCD_STR_THERMOMETER[0],(int)degHotend(0),(int)degTargetHotend(0));
|
|
|
-lcd_puts_at_P(0,1, _i("Press the knob"));
|
|
|
+lcd_puts_at_P(0,1, _i("Press the knob"));
|
|
|
lcd_set_cursor(0,2);
|
|
|
switch(eFilamentAction)
|
|
|
{
|
|
|
case FilamentAction::Load:
|
|
|
case FilamentAction::AutoLoad:
|
|
|
case FilamentAction::MmuLoad:
|
|
|
- lcd_puts_P(_i("to load filament"));
|
|
|
+ lcd_puts_P(_i("to load filament"));
|
|
|
break;
|
|
|
case FilamentAction::UnLoad:
|
|
|
case FilamentAction::MmuUnLoad:
|
|
|
- lcd_puts_P(_i("to unload filament"));
|
|
|
+ lcd_puts_P(_i("to unload filament"));
|
|
|
break;
|
|
|
case FilamentAction::MmuEject:
|
|
|
case FilamentAction::MmuCut:
|
|
@@ -2209,7 +2209,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
|
|
|
|
|
lcd_clear();
|
|
|
lcd_draw_update = 1;
|
|
|
- lcd_puts_at_P(0, 3, _i(">Cancel"));
|
|
|
+ lcd_puts_at_P(0, 3, _T(MSG_CANCEL));
|
|
|
|
|
|
lcd_set_cursor(0, 1);
|
|
|
switch (eFilamentAction)
|
|
@@ -2217,19 +2217,19 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
|
|
case FilamentAction::Load:
|
|
|
case FilamentAction::AutoLoad:
|
|
|
case FilamentAction::MmuLoad:
|
|
|
- lcd_puts_P(_i("Preheating to load"));
|
|
|
+ lcd_puts_P(_i("Preheating to load"));
|
|
|
raise_z_above(MIN_Z_FOR_LOAD);
|
|
|
break;
|
|
|
case FilamentAction::UnLoad:
|
|
|
case FilamentAction::MmuUnLoad:
|
|
|
- lcd_puts_P(_i("Preheating to unload"));
|
|
|
+ lcd_puts_P(_i("Preheating to unload"));
|
|
|
raise_z_above(MIN_Z_FOR_UNLOAD);
|
|
|
break;
|
|
|
case FilamentAction::MmuEject:
|
|
|
- lcd_puts_P(_i("Preheating to eject"));
|
|
|
+ lcd_puts_P(_i("Preheating to eject"));
|
|
|
break;
|
|
|
case FilamentAction::MmuCut:
|
|
|
- lcd_puts_P(_i("Preheating to cut"));
|
|
|
+ lcd_puts_P(_i("Preheating to cut"));
|
|
|
break;
|
|
|
case FilamentAction::None:
|
|
|
case FilamentAction::Preheat:
|
|
@@ -2237,6 +2237,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
+ lcd_puts_at_P(0, 3, _T(MSG_CANCEL));
|
|
|
}
|
|
|
|
|
|
lcd_set_cursor(0, 0);
|
|
@@ -2398,7 +2399,7 @@ void lcd_wait_interact() {
|
|
|
|
|
|
lcd_set_cursor(0, 1);
|
|
|
#ifdef SNMM
|
|
|
- lcd_puts_P(_i("Prepare new filament"));
|
|
|
+ lcd_puts_P(_i("Prepare new filament"));
|
|
|
#else
|
|
|
lcd_puts_P(_i("Insert filament"));
|
|
|
#endif
|
|
@@ -2412,7 +2413,7 @@ void lcd_change_success() {
|
|
|
|
|
|
lcd_clear();
|
|
|
|
|
|
- lcd_puts_at_P(0, 2, _i("Change success!"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Change success!"));
|
|
|
|
|
|
|
|
|
}
|
|
@@ -2434,7 +2435,7 @@ void lcd_loading_color() {
|
|
|
|
|
|
lcd_clear();
|
|
|
|
|
|
- lcd_puts_at_P(0, 0, _i("Loading color"));
|
|
|
+ lcd_puts_at_P(0, 0, _i("Loading color"));
|
|
|
lcd_puts_at_P(0, 2, _T(MSG_PLEASE_WAIT));
|
|
|
lcd_loading_progress_bar((FILAMENTCHANGE_FINALFEED * 1000ul) / FILAMENTCHANGE_EFEED_FINAL);
|
|
|
}
|
|
@@ -2483,7 +2484,7 @@ void lcd_alright() {
|
|
|
lcd_puts_at_P(0, 0, _i("Changed correctly?"));
|
|
|
lcd_puts_at_P(1, 1, _T(MSG_YES));
|
|
|
lcd_puts_at_P(1, 2, _i("Filament not loaded"));
|
|
|
- lcd_puts_at_P(1, 3, _i("Color not correct"));
|
|
|
+ lcd_puts_at_P(1, 3, _i("Color not correct"));
|
|
|
lcd_putc_at(0, 1, '>');
|
|
|
|
|
|
|
|
@@ -2595,9 +2596,9 @@ static void lcd_LoadFilament()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2606,9 +2607,9 @@ static void lcd_LoadFilament()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2631,8 +2632,8 @@ void lcd_menu_statistics()
|
|
|
"%S:\n"
|
|
|
"%10ldh %02hhdm %02hhds"
|
|
|
),
|
|
|
- _i("Filament used"), _met,
|
|
|
- _i("Print time"), _h, _m, _s);
|
|
|
+ _i("Filament used"), _met,
|
|
|
+ _i("Print time"), _h, _m, _s);
|
|
|
menu_back_if_clicked_fb();
|
|
|
}
|
|
|
else
|
|
@@ -2653,8 +2654,8 @@ void lcd_menu_statistics()
|
|
|
"%S:\n"
|
|
|
"%10ldd %02hhdh %02hhdm"
|
|
|
),
|
|
|
- _i("Total filament"), _filament_m,
|
|
|
- _i("Total print time"), _days, _hours, _minutes);
|
|
|
+ _i("Total filament"), _filament_m,
|
|
|
+ _i("Total print time"), _days, _hours, _minutes);
|
|
|
menu_back_if_clicked_fb();
|
|
|
}
|
|
|
}
|
|
@@ -2742,10 +2743,10 @@ void lcd_move_e()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2755,20 +2756,20 @@ static void lcd_menu_xyz_y_min()
|
|
|
count_xyz_details(distanceMin);
|
|
|
lcd_home();
|
|
|
lcd_printf_P(_N(
|
|
|
- "%S:\n"
|
|
|
+ "%S\n"
|
|
|
"%S\n"
|
|
|
"%S:\n"
|
|
|
"%S:"
|
|
|
),
|
|
|
- _i("Y distance from min"),
|
|
|
+ _i("Y distance from min"),
|
|
|
separator,
|
|
|
- _i("Left"),
|
|
|
- _i("Right")
|
|
|
+ _i("Left"),
|
|
|
+ _i("Right")
|
|
|
);
|
|
|
for (uint8_t i = 0; i < 2; i++)
|
|
|
{
|
|
|
lcd_set_cursor(11,2+i);
|
|
|
- if (distanceMin[i] >= 200) lcd_puts_P(_T(MSG_NA));
|
|
|
+ if (distanceMin[i] >= 200) lcd_puts_P(_T(MSG_NA));
|
|
|
else lcd_printf_P(_N("%6.2fmm"), distanceMin[i]);
|
|
|
}
|
|
|
if (lcd_clicked())
|
|
@@ -2785,10 +2786,10 @@ float _deg(float rad)
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -2803,10 +2804,10 @@ static void lcd_menu_xyz_skew()
|
|
|
"%-15.15S%3.2f\x01\n"
|
|
|
"%-15.15S%3.2f\x01"
|
|
|
),
|
|
|
- _i("Measured skew"),
|
|
|
+ _i("Measured skew"),
|
|
|
separator,
|
|
|
- _i("Slight skew:"), _deg(bed_skew_angle_mild),
|
|
|
- _i("Severe skew:"), _deg(bed_skew_angle_extreme)
|
|
|
+ _i("Slight skew:"), _deg(bed_skew_angle_mild),
|
|
|
+ _i("Severe skew:"), _deg(bed_skew_angle_extreme)
|
|
|
);
|
|
|
if (angleDiff < 100){
|
|
|
lcd_set_cursor(15,0);
|
|
@@ -2822,19 +2823,19 @@ static void lcd_menu_xyz_skew()
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
static void lcd_menu_xyz_offset()
|
|
|
{
|
|
|
- lcd_puts_at_P(0, 0, _i("[0;0] point offset"));
|
|
|
+ lcd_puts_at_P(0, 0, _i("[0;0] point offset"));
|
|
|
lcd_puts_at_P(0, 1, separator);
|
|
|
- lcd_puts_at_P(0, 2, PSTR("X"));
|
|
|
- lcd_puts_at_P(0, 3, PSTR("Y"));
|
|
|
+ lcd_puts_at_P(0, 2, PSTR("X"));
|
|
|
+ lcd_puts_at_P(0, 3, PSTR("Y"));
|
|
|
|
|
|
float vec_x[2];
|
|
|
float vec_y[2];
|
|
@@ -3032,10 +3033,10 @@ void lcd_adjust_bed(void)
|
|
|
eeprom_update_byte((unsigned char*)EEPROM_BED_CORRECTION_VALID, 1);
|
|
|
);
|
|
|
MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Left side [um]"), &_md->left, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Right side[um]"), &_md->right, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Front side[um]"), &_md->front, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Rear side [um]"), &_md->rear, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Left side [um]"), &_md->left, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Right side[um]"), &_md->right, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Front side[um]"), &_md->front, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Rear side [um]"), &_md->rear, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
|
|
|
MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_adjust_bed_reset);
|
|
|
MENU_END();
|
|
|
}
|
|
@@ -3053,7 +3054,7 @@ void lcd_adjust_bed(void)
|
|
|
void pid_extruder()
|
|
|
{
|
|
|
lcd_clear();
|
|
|
- lcd_puts_at_P(1, 0, _i("Set temperature:"));
|
|
|
+ lcd_puts_at_P(1, 0, _i("Set temperature:"));
|
|
|
pid_temp += int(lcd_encoder);
|
|
|
if (pid_temp > HEATER_0_MAXTEMP) pid_temp = HEATER_0_MAXTEMP;
|
|
|
if (pid_temp < HEATER_0_MINTEMP) pid_temp = HEATER_0_MINTEMP;
|
|
@@ -3201,7 +3202,7 @@ void lcd_wait_for_cool_down() {
|
|
|
int fanSpeedBckp = fanSpeed;
|
|
|
fanSpeed = 255;
|
|
|
while ((degHotend(0)>MAX_HOTEND_TEMP_CALIBRATION) || (degBed() > MAX_BED_TEMP_CALIBRATION)) {
|
|
|
- lcd_display_message_fullscreen_P(_i("Waiting for nozzle and bed cooling"));
|
|
|
+ lcd_display_message_fullscreen_P(_i("Waiting for nozzle and bed cooling"));
|
|
|
|
|
|
lcd_set_cursor(0, 4);
|
|
|
lcd_print(LCD_STR_THERMOMETER[0]);
|
|
@@ -3621,16 +3622,16 @@ void lcd_bed_calibration_show_result(BedSkewOffsetDetectionResultType result, ui
|
|
|
{
|
|
|
const char *msg = NULL;
|
|
|
if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("XYZ calibration failed. Bed calibration point was not found."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("XYZ calibration failed. Bed calibration point was not found."));
|
|
|
} else if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED) {
|
|
|
if (point_too_far_mask == 0)
|
|
|
msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
|
|
|
else if (point_too_far_mask == 2 || point_too_far_mask == 7)
|
|
|
|
|
|
- msg = _i("XYZ calibration failed. Front calibration points not reachable.");
|
|
|
+ msg = _i("XYZ calibration failed. Front calibration points not reachable.");
|
|
|
else if ((point_too_far_mask & 1) == 0)
|
|
|
|
|
|
- msg = _i("XYZ calibration failed. Right front calibration point not reachable.");
|
|
|
+ msg = _i("XYZ calibration failed. Right front calibration point not reachable.");
|
|
|
else
|
|
|
|
|
|
msg = _i("XYZ calibration failed. Left front calibration point not reachable.");
|
|
@@ -3748,7 +3749,7 @@ static void lcd_print_state(uint8_t state)
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -3767,13 +3768,13 @@ static void lcd_show_sensors_state()
|
|
|
finda_state = mmu_finda;
|
|
|
}
|
|
|
|
|
|
- lcd_puts_at_P(0, 0, _i("PINDA"));
|
|
|
+ lcd_puts_at_P(0, 0, _T(MSG_PINDA));
|
|
|
lcd_set_cursor(LCD_WIDTH - 14, 0);
|
|
|
lcd_print_state(pinda_state);
|
|
|
|
|
|
if (mmu_enabled == true)
|
|
|
{
|
|
|
- lcd_puts_at_P(10, 0, _i("FINDA"));
|
|
|
+ lcd_puts_at_P(10, 0, _i("FINDA"));
|
|
|
lcd_set_cursor(LCD_WIDTH - 3, 0);
|
|
|
lcd_print_state(finda_state);
|
|
|
}
|
|
@@ -3806,9 +3807,9 @@ static void lcd_show_sensors_state()
|
|
|
lcd_set_cursor(0, 2);
|
|
|
lcd_printf_P(_N(
|
|
|
"Xd: %3d "
|
|
|
- "Yd: %3d\n"
|
|
|
- "Int: %3d "
|
|
|
- "Shut: %3d"
|
|
|
+ "Yd: %3d\n"
|
|
|
+ "Int: %3d "
|
|
|
+ "Shut: %3d"
|
|
|
),
|
|
|
pat9125_x, pat9125_y,
|
|
|
pat9125_b, pat9125_s
|
|
@@ -4151,10 +4152,10 @@ void lcd_move_menu_axis()
|
|
|
{
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Move X"), lcd_move_x);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Move Y"), lcd_move_y);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Move Z"), lcd_move_z);
|
|
|
- MENU_ITEM_SUBMENU_P(_T(MSG_EXTRUDER), lcd_move_e);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Move X"), lcd_move_x);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Move Y"), lcd_move_y);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Move Z"), lcd_move_z);
|
|
|
+ MENU_ITEM_SUBMENU_P(_T(MSG_EXTRUDER), lcd_move_e);
|
|
|
MENU_END();
|
|
|
}
|
|
|
|
|
@@ -4284,7 +4285,7 @@ static void lcd_silent_mode_set() {
|
|
|
}
|
|
|
eeprom_update_byte((unsigned char *)EEPROM_SILENT, SilentModeMenu);
|
|
|
#ifdef TMC2130
|
|
|
- lcd_display_message_fullscreen_P(_i("Mode change in progress ..."));
|
|
|
+ lcd_display_message_fullscreen_P(_i("Mode change in progress ..."));
|
|
|
|
|
|
|
|
|
st_synchronize();
|
|
@@ -4353,7 +4354,7 @@ void menu_setlang(unsigned char lang)
|
|
|
{
|
|
|
if (!lang_select(lang))
|
|
|
{
|
|
|
- if (lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Copy selected language?"), false, true))
|
|
|
+ if (lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Copy selected language?"), false, true))
|
|
|
lang_boot_update_start(lang);
|
|
|
lcd_update_enable(true);
|
|
|
lcd_clear();
|
|
@@ -4447,7 +4448,7 @@ void lcd_pinda_calibration_menu()
|
|
|
{
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MENU_CALIBRATION));
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Calibrate"), lcd_calibrate_pinda);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Calibrate"), lcd_calibrate_pinda);
|
|
|
MENU_END();
|
|
|
}
|
|
|
|
|
@@ -4624,8 +4625,8 @@ void lcd_v2_calibration()
|
|
|
if (mmu_enabled)
|
|
|
{
|
|
|
const uint8_t filament = choose_menu_P(
|
|
|
- _i("Select filament:"),
|
|
|
- _T(MSG_FILAMENT),_i("Cancel"));
|
|
|
+ _i("Select filament:"),
|
|
|
+ _T(MSG_FILAMENT),(_T(MSG_CANCEL)+1));
|
|
|
if (filament < 5)
|
|
|
{
|
|
|
lay1cal_filament = filament;
|
|
@@ -4731,12 +4732,12 @@ static void lcd_wizard_load()
|
|
|
{
|
|
|
if (mmu_enabled)
|
|
|
{
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Please insert filament into the first tube of the MMU, then press the knob to load it."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Please insert filament into the first tube of the MMU, then press the knob to load it."));
|
|
|
tmp_extruder = 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Please insert filament into the extruder, then press the knob to load it."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Please insert filament into the extruder, then press the knob to load it."));
|
|
|
}
|
|
|
lcd_update_enable(false);
|
|
|
lcd_clear();
|
|
@@ -4760,12 +4761,12 @@ static void wizard_lay1cal_message(bool cold)
|
|
|
if (mmu_enabled)
|
|
|
{
|
|
|
lcd_show_fullscreen_message_and_wait_P(
|
|
|
- _i("Choose a filament for the First Layer Calibration and select it in the on-screen menu."));
|
|
|
+ _i("Choose a filament for the First Layer Calibration and select it in the on-screen menu."));
|
|
|
}
|
|
|
else if (cold)
|
|
|
{
|
|
|
lcd_show_fullscreen_message_and_wait_P(
|
|
|
- _i("Select temperature which matches your material."));
|
|
|
+ _i("Select temperature which matches your material."));
|
|
|
}
|
|
|
lcd_show_fullscreen_message_and_wait_P(
|
|
|
_i("The printer will start printing a zig-zag line. Rotate the knob until you reach the optimal height. Check the pictures in the handbook (Calibration chapter)."));
|
|
@@ -4875,8 +4876,8 @@ void lcd_wizard(WizState state)
|
|
|
else end = true;
|
|
|
break;
|
|
|
case S::Z:
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Please remove shipping helpers first."));
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Now remove the test print from steel sheet."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Please remove shipping helpers first."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Now remove the test print from steel sheet."));
|
|
|
lcd_show_fullscreen_message_and_wait_P(_i("I will run z calibration now."));
|
|
|
wizard_event = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false, false);
|
|
|
if (!wizard_event) lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
|
|
@@ -4916,7 +4917,7 @@ void lcd_wizard(WizState state)
|
|
|
break;
|
|
|
case S::Preheat:
|
|
|
menu_goto(lcd_preheat_menu,0,false,true);
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Select nozzle preheat temperature which matches your material."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Select nozzle preheat temperature which matches your material."));
|
|
|
end = true;
|
|
|
break;
|
|
|
case S::LoadFilHot:
|
|
@@ -4947,7 +4948,7 @@ void lcd_wizard(WizState state)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("If you have additional steel sheets, calibrate their presets in Settings - HW Setup - Steel sheets."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("If you have additional steel sheets, calibrate their presets in Settings - HW Setup - Steel sheets."));
|
|
|
state = S::Finish;
|
|
|
}
|
|
|
break;
|
|
@@ -5042,13 +5043,13 @@ do\
|
|
|
if (mmu_enabled == false)\
|
|
|
{\
|
|
|
if (fsensor_autoload_enabled)\
|
|
|
- MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), _T(MSG_ON), lcd_set_filament_autoload);\
|
|
|
+ MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), _T(MSG_ON), lcd_set_filament_autoload);\
|
|
|
else\
|
|
|
- MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), _T(MSG_OFF), lcd_set_filament_autoload);\
|
|
|
+ MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), _T(MSG_OFF), lcd_set_filament_autoload);\
|
|
|
\
|
|
|
- \
|
|
|
+ \
|
|
|
\
|
|
|
- \
|
|
|
+ \
|
|
|
}\
|
|
|
}\
|
|
|
}\
|
|
@@ -5559,7 +5560,7 @@ void lcd_hw_setup_menu(void)
|
|
|
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_STEEL_SHEETS), sheets_menu);
|
|
|
SETTINGS_NOZZLE;
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Checks"), lcd_checking_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Checks"), lcd_checking_menu);
|
|
|
|
|
|
#ifdef IR_SENSOR_ANALOG
|
|
|
FSENSOR_ACTION_NA;
|
|
@@ -5591,12 +5592,12 @@ static void lcd_settings_menu()
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Temperature"), lcd_control_temperature_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Temperature"), lcd_control_temperature_menu);
|
|
|
|
|
|
if (!PRINTER_ACTIVE || isPrintPaused)
|
|
|
{
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Move axis"), lcd_move_menu_1mm);
|
|
|
- MENU_ITEM_GCODE_P(_i("Disable steppers"), PSTR("M84"));
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Move axis"), lcd_move_menu_1mm);
|
|
|
+ MENU_ITEM_GCODE_P(_i("Disable steppers"), PSTR("M84"));
|
|
|
}
|
|
|
|
|
|
SETTINGS_FILAMENT_SENSOR;
|
|
@@ -5620,7 +5621,7 @@ static void lcd_settings_menu()
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_MESH_BED_LEVELING), lcd_mesh_bed_leveling_settings);
|
|
|
|
|
|
#if defined (TMC2130) && defined (LINEARITY_CORRECTION)
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Lin. correction"), lcd_settings_linearity_correction_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Lin. correction"), lcd_settings_linearity_correction_menu);
|
|
|
#endif
|
|
|
if(has_temperature_compensation())
|
|
|
{
|
|
@@ -5635,7 +5636,7 @@ static void lcd_settings_menu()
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_BABYSTEP_Z), lcd_babystep_z);
|
|
|
|
|
|
#if (LANG_MODE != 0)
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Select language"), lcd_language_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Select language"), lcd_language_menu);
|
|
|
#endif
|
|
|
|
|
|
SETTINGS_SD;
|
|
@@ -5689,40 +5690,40 @@ static void lcd_calibration_menu()
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
if (!isPrintPaused)
|
|
|
{
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Wizard"), lcd_wizard);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Wizard"), lcd_wizard);
|
|
|
if (lcd_commands_type == LcdCommands::Idle)
|
|
|
{
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_V2_CALIBRATION), lcd_first_layer_calibration_reset);
|
|
|
}
|
|
|
MENU_ITEM_GCODE_P(_T(MSG_AUTO_HOME), PSTR("G28 W"));
|
|
|
#ifdef TMC2130
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Belt test "), lcd_belttest_v);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Belt test "), lcd_belttest_v);
|
|
|
#endif
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Selftest "), lcd_selftest_v);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Selftest "), lcd_selftest_v);
|
|
|
#ifdef MK1BP
|
|
|
|
|
|
|
|
|
MENU_ITEM_GCODE_P(_T(MSG_HOMEYZ), PSTR("G28 Z"));
|
|
|
#else
|
|
|
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Calibrate XYZ"), lcd_mesh_calibration);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Calibrate XYZ"), lcd_mesh_calibration);
|
|
|
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_HOMEYZ), lcd_mesh_calibration_z);
|
|
|
#ifndef SNMM
|
|
|
-
|
|
|
+
|
|
|
#endif
|
|
|
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_MESH_BED_LEVELING), lcd_mesh_bedleveling);
|
|
|
|
|
|
#endif
|
|
|
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Bed level correct"), lcd_adjust_bed);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("PID calibration"), pid_extruder);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Bed level correct"), lcd_adjust_bed);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("PID calibration"), pid_extruder);
|
|
|
#ifndef TMC2130
|
|
|
MENU_ITEM_SUBMENU_P(_i("Show end stops"), menu_show_end_stops);
|
|
|
#endif
|
|
|
#ifndef MK1BP
|
|
|
- MENU_ITEM_GCODE_P(_i("Reset XYZ calibr."), PSTR("M44"));
|
|
|
+ MENU_ITEM_GCODE_P(_i("Reset XYZ calibr."), PSTR("M44"));
|
|
|
#endif
|
|
|
#ifndef SNMM
|
|
|
|
|
@@ -5730,7 +5731,7 @@ static void lcd_calibration_menu()
|
|
|
#ifndef MK1BP
|
|
|
if(has_temperature_compensation())
|
|
|
{
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Temp. calibration"), lcd_pinda_calibration_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Temp. calibration"), lcd_pinda_calibration_menu);
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
@@ -5846,8 +5847,8 @@ static char snmm_stop_print_menu() {
|
|
|
lcd_clear();
|
|
|
lcd_puts_at_P(0,0,_T(MSG_UNLOAD_FILAMENT)); lcd_print(':');
|
|
|
lcd_set_cursor(0, 1); lcd_print('>');
|
|
|
- lcd_puts_at_P(1,2,_i("Used during print"));
|
|
|
- lcd_puts_at_P(1,3,_i("Current"));
|
|
|
+ lcd_puts_at_P(1,2,_i("Used during print"));
|
|
|
+ lcd_puts_at_P(1,3,_i("Current"));
|
|
|
char cursor_pos = 1;
|
|
|
int enc_dif = 0;
|
|
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
|
@@ -6194,10 +6195,10 @@ static void fil_unload_menu()
|
|
|
static void change_extr_menu(){
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Extruder 1"), extr_change_0);
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Extruder 2"), extr_change_1);
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Extruder 3"), extr_change_2);
|
|
|
- MENU_ITEM_FUNCTION_P(_i("Extruder 4"), extr_change_3);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Extruder 1"), extr_change_0);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Extruder 2"), extr_change_1);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Extruder 3"), extr_change_2);
|
|
|
+ MENU_ITEM_FUNCTION_P(_i("Extruder 4"), extr_change_3);
|
|
|
|
|
|
MENU_END();
|
|
|
}
|
|
@@ -6490,14 +6491,14 @@ static void lcd_sheet_menu()
|
|
|
MENU_ITEM_BACK_P(_T(MSG_STEEL_SHEETS));
|
|
|
|
|
|
if(eeprom_is_sheet_initialized(selected_sheet)){
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Select"), change_sheet);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Select"), change_sheet);
|
|
|
}
|
|
|
|
|
|
if (lcd_commands_type == LcdCommands::Idle)
|
|
|
{
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_V2_CALIBRATION), activate_calibrate_sheet);
|
|
|
}
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Rename"), lcd_rename_sheet_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Rename"), lcd_rename_sheet_menu);
|
|
|
MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_reset_sheet);
|
|
|
|
|
|
MENU_END();
|
|
@@ -6571,9 +6572,9 @@ static void lcd_main_menu()
|
|
|
MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);
|
|
|
|
|
|
if ( moves_planned() || PRINTER_ACTIVE ) {
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Tune"), lcd_tune_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Tune"), lcd_tune_menu);
|
|
|
} else {
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Preheat"), lcd_preheat_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Preheat"), lcd_preheat_menu);
|
|
|
}
|
|
|
|
|
|
if (mesh_bed_leveling_flag == false && homing_flag == false && !isPrintPaused) {
|
|
@@ -6615,7 +6616,7 @@ static void lcd_main_menu()
|
|
|
}
|
|
|
} else {
|
|
|
bMain=true;
|
|
|
- MENU_ITEM_SUBMENU_P(_i("No SD card"), lcd_sdcard_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("No SD card"), lcd_sdcard_menu);
|
|
|
#if SDCARDDETECT < 1
|
|
|
MENU_ITEM_GCODE_P(_i("Init. SD card"), PSTR("M21"));
|
|
|
#endif
|
|
@@ -6635,7 +6636,7 @@ static void lcd_main_menu()
|
|
|
if ( ! ( IS_SD_PRINTING || is_usb_printing || (lcd_commands_type == LcdCommands::Layer1Cal) ) ) {
|
|
|
if (mmu_enabled) {
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), fil_load_menu);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Load to nozzle"), mmu_load_to_nozzle_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Load to nozzle"), mmu_load_to_nozzle_menu);
|
|
|
|
|
|
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), mmu_unload_filament);
|
|
@@ -6646,7 +6647,7 @@ static void lcd_main_menu()
|
|
|
} else {
|
|
|
#ifdef SNMM
|
|
|
MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), fil_unload_menu);
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Change extruder"), change_extr_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Change extruder"), change_extr_menu);
|
|
|
#endif
|
|
|
#ifdef FILAMENT_SENSOR
|
|
|
if ((fsensor_autoload_enabled == true) && (fsensor_enabled == true) && (mmu_enabled == false))
|
|
@@ -6665,16 +6666,16 @@ static void lcd_main_menu()
|
|
|
}
|
|
|
|
|
|
if (!is_usb_printing && (lcd_commands_type != LcdCommands::Layer1Cal)) {
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Statistics "), lcd_menu_statistics);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Statistics "), lcd_menu_statistics);
|
|
|
}
|
|
|
|
|
|
#if defined(TMC2130) || defined(FILAMENT_SENSOR)
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Fail stats"), lcd_menu_fails_stats);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Fail stats"), lcd_menu_fails_stats);
|
|
|
#endif
|
|
|
if (mmu_enabled) {
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Fail stats MMU"), lcd_menu_fails_stats_mmu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Fail stats MMU"), lcd_menu_fails_stats_mmu);
|
|
|
}
|
|
|
- MENU_ITEM_SUBMENU_P(_i("Support"), lcd_support_menu);
|
|
|
+ MENU_ITEM_SUBMENU_P(_i("Support"), lcd_support_menu);
|
|
|
#ifdef LCD_TEST
|
|
|
MENU_ITEM_SUBMENU_P(_i("XFLASH init"), lcd_test_menu);
|
|
|
#endif
|
|
@@ -6806,13 +6807,13 @@ static void lcd_tune_menu()
|
|
|
|
|
|
MENU_BEGIN();
|
|
|
MENU_ITEM_BACK_P(_T(MSG_MAIN));
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Speed"), &feedmultiply, 10, 999);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Speed"), &feedmultiply, 10, 999);
|
|
|
|
|
|
MENU_ITEM_EDIT_int3_P(_T(MSG_NOZZLE), &target_temperature[0], 0, HEATER_0_MAXTEMP - 10);
|
|
|
MENU_ITEM_EDIT_int3_P(_T(MSG_BED), &target_temperature_bed, 0, BED_MAXTEMP - 10);
|
|
|
|
|
|
MENU_ITEM_EDIT_int3_P(_T(MSG_FAN_SPEED), &fanSpeed, 0, 255);
|
|
|
- MENU_ITEM_EDIT_int3_P(_i("Flow"), &extrudemultiply, 10, 999);
|
|
|
+ MENU_ITEM_EDIT_int3_P(_i("Flow"), &extrudemultiply, 10, 999);
|
|
|
#ifdef LA_LIVE_K
|
|
|
MENU_ITEM_EDIT_advance_K();
|
|
|
#endif
|
|
@@ -7317,7 +7318,7 @@ static bool lcd_selftest_IRsensor(bool bStandalone)
|
|
|
lcd_selftest_error(TestError::FsensorLevel,"HIGH","");
|
|
|
return(false);
|
|
|
}
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Insert the filament (do not load it) into the extruder and then press the knob."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Insert the filament (do not load it) into the extruder and then press the knob."));
|
|
|
volt_IR_int = current_voltage_raw_IR;
|
|
|
printf_P(PSTR("Measured filament sensor low level: %4.2fV\n"), Raw2Voltage(volt_IR_int));
|
|
|
if(volt_IR_int > (IRsensor_Lmax_TRESHOLD)){
|
|
@@ -7341,18 +7342,18 @@ static void lcd_detect_IRsensor(){
|
|
|
|
|
|
loaded = ! READ(IR_SENSOR_PIN);
|
|
|
if(loaded ){
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Please unload the filament first, then repeat this action."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Please unload the filament first, then repeat this action."));
|
|
|
return;
|
|
|
} else {
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Please check the IR sensor connection, unload filament if present."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Please check the IR sensor connection, unload filament if present."));
|
|
|
bAction = lcd_selftest_IRsensor(true);
|
|
|
}
|
|
|
if(bAction){
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Sensor verified, remove the filament now."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Sensor verified, remove the filament now."));
|
|
|
|
|
|
fsensor_not_responding = false;
|
|
|
} else {
|
|
|
- lcd_show_fullscreen_message_and_wait_P(_i("Verification failed, remove the filament and try again."));
|
|
|
+ lcd_show_fullscreen_message_and_wait_P(_i("Verification failed, remove the filament and try again."));
|
|
|
|
|
|
}
|
|
|
bMenuFSDetect=false;
|
|
@@ -7616,7 +7617,7 @@ bool lcd_selftest()
|
|
|
|
|
|
if (_result)
|
|
|
{
|
|
|
- LCD_ALERTMESSAGERPGM(_i("Self test OK"));
|
|
|
+ LCD_ALERTMESSAGERPGM(_i("Self test OK"));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -8058,30 +8059,30 @@ static void lcd_selftest_error(TestError testError, const char *_error_1, const
|
|
|
|
|
|
lcd_clear();
|
|
|
|
|
|
- lcd_puts_at_P(0, 0, _i("Selftest error !"));
|
|
|
- lcd_puts_at_P(0, 1, _i("Please check :"));
|
|
|
+ lcd_puts_at_P(0, 0, _i("Selftest error !"));
|
|
|
+ lcd_puts_at_P(0, 1, _i("Please check :"));
|
|
|
|
|
|
switch (testError)
|
|
|
{
|
|
|
case TestError::Heater:
|
|
|
- lcd_puts_at_P(0, 2, _i("Heater/Thermistor"));
|
|
|
- lcd_puts_at_P(0, 3, _i("Not connected"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Heater/Thermistor"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("Not connected"));
|
|
|
break;
|
|
|
case TestError::Bed:
|
|
|
- lcd_puts_at_P(0, 2, _i("Bed / Heater"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Bed / Heater"));
|
|
|
lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
|
|
|
break;
|
|
|
case TestError::Endstops:
|
|
|
- lcd_puts_at_P(0, 2, _i("Endstops"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Endstops"));
|
|
|
lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
|
|
|
- lcd_set_cursor(17, 3);
|
|
|
+ lcd_set_cursor(18, 3);
|
|
|
lcd_print(_error_1);
|
|
|
break;
|
|
|
case TestError::Motor:
|
|
|
lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_MOTOR));
|
|
|
lcd_set_cursor(18, 2);
|
|
|
lcd_print(_error_1);
|
|
|
- lcd_puts_at_P(0, 3, _i("Endstop"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("Endstop"));
|
|
|
lcd_set_cursor(18, 3);
|
|
|
lcd_print(_error_2);
|
|
|
break;
|
|
@@ -8104,20 +8105,20 @@ static void lcd_selftest_error(TestError testError, const char *_error_1, const
|
|
|
lcd_print(_error_1);
|
|
|
break;
|
|
|
case TestError::Pulley:
|
|
|
- lcd_puts_at_P(0, 2, _i("Loose pulley"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Loose pulley"));
|
|
|
lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_MOTOR));
|
|
|
lcd_set_cursor(18, 3);
|
|
|
lcd_print(_error_1);
|
|
|
break;
|
|
|
case TestError::Axis:
|
|
|
- lcd_puts_at_P(0, 2, _i("Axis length"));
|
|
|
- lcd_puts_at_P(0, 3, _i("Axis"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Axis length"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("Axis"));
|
|
|
lcd_set_cursor(18, 3);
|
|
|
lcd_print(_error_1);
|
|
|
break;
|
|
|
case TestError::SwappedFan:
|
|
|
- lcd_puts_at_P(0, 2, _i("Front/left fans"));
|
|
|
- lcd_puts_at_P(0, 3, _i("Swapped"));
|
|
|
+ lcd_puts_at_P(0, 2, _i("Front/left fans"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("Swapped"));
|
|
|
lcd_set_cursor(18, 3);
|
|
|
lcd_print(_error_1);
|
|
|
break;
|
|
@@ -8127,7 +8128,7 @@ static void lcd_selftest_error(TestError testError, const char *_error_1, const
|
|
|
break;
|
|
|
case TestError::TriggeringFsensor:
|
|
|
lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
|
|
|
- lcd_puts_at_P(0, 3, _i("False triggering"));
|
|
|
+ lcd_puts_at_P(0, 3, _i("False triggering"));
|
|
|
break;
|
|
|
case TestError::FsensorLevel:
|
|
|
lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
|
|
@@ -8429,7 +8430,7 @@ static int lcd_selftest_screen(TestScreen screen, int _progress, int _progress_s
|
|
|
if (screen == TestScreen::FsensorOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
|
|
|
if (screen == TestScreen::AllCorrect) lcd_puts_P(_i("All correct "));
|
|
|
if (screen == TestScreen::Failed) lcd_puts_P(_T(MSG_SELFTEST_FAILED));
|
|
|
- if (screen == TestScreen::Home) lcd_puts_P(_i("Calibrating home"));
|
|
|
+ if (screen == TestScreen::Home) lcd_puts_P(_i("Calibrating home"));
|
|
|
|
|
|
lcd_puts_at_P(0, 1, separator);
|
|
|
if ((screen >= TestScreen::ExtruderFan) && (screen <= TestScreen::FansOk))
|
|
@@ -8517,7 +8518,7 @@ static bool check_file(const char* filename) {
|
|
|
cmdqueue_reset();
|
|
|
cmdqueue_serial_disabled = true;
|
|
|
|
|
|
- menu_progressbar_init(bytesToCheck, _i("Checking file"));
|
|
|
+ menu_progressbar_init(bytesToCheck, _i("Checking file"));
|
|
|
while (!card.eof() && !result) {
|
|
|
menu_progressbar_update(card.get_sdpos() - startPos);
|
|
|
card.sdprinting = true;
|
|
@@ -8866,7 +8867,7 @@ void menu_lcd_lcdupdate_func(void)
|
|
|
if(menu_menu==lcd_sdcard_menu)
|
|
|
menu_back();
|
|
|
card.release();
|
|
|
- LCD_MESSAGERPGM(_i("Card removed"));
|
|
|
+ LCD_MESSAGERPGM(_i("Card removed"));
|
|
|
}
|
|
|
}
|
|
|
#endif
|