New ML support - migration - fix_source_1.sh script (replace 'MSG_xx' with '_T(MSG_xx)')
+ output + fixed source
This commit is contained in:
parent
da3432e237
commit
2cf20c8c99
@ -664,11 +664,11 @@ void crashdet_detected(uint8_t mask)
|
||||
#ifdef AUTOMATIC_RECOVERY_AFTER_CRASH
|
||||
bool yesno = true;
|
||||
#else
|
||||
bool yesno = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_CRASH_DETECTED, false);
|
||||
bool yesno = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_CRASH_DETECTED), false);
|
||||
#endif
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(MSG_CRASH_DETECTED);
|
||||
lcd_setstatuspgm(_T(MSG_CRASH_DETECTED));
|
||||
if (yesno)
|
||||
{
|
||||
enquecommand_P(PSTR("G28 X Y"));
|
||||
@ -1008,12 +1008,12 @@ void setup()
|
||||
|
||||
// Check startup - does nothing if bootloader sets MCUSR to 0
|
||||
byte mcu = MCUSR;
|
||||
/* if (mcu & 1) SERIAL_ECHOLNRPGM(MSG_POWERUP);
|
||||
/* if (mcu & 1) SERIAL_ECHOLNRPGM(_T(MSG_POWERUP));
|
||||
if (mcu & 2) SERIAL_ECHOLNRPGM(MSG_EXTERNAL_RESET);
|
||||
if (mcu & 4) SERIAL_ECHOLNRPGM(MSG_BROWNOUT_RESET);
|
||||
if (mcu & 8) SERIAL_ECHOLNRPGM(MSG_WATCHDOG_RESET);
|
||||
if (mcu & 32) SERIAL_ECHOLNRPGM(MSG_SOFTWARE_RESET);*/
|
||||
if (mcu & 1) puts_P(MSG_POWERUP);
|
||||
if (mcu & 1) puts_P(_T(MSG_POWERUP));
|
||||
if (mcu & 2) puts_P(MSG_EXTERNAL_RESET);
|
||||
if (mcu & 4) puts_P(MSG_BROWNOUT_RESET);
|
||||
if (mcu & 8) puts_P(MSG_WATCHDOG_RESET);
|
||||
@ -1348,11 +1348,11 @@ void setup()
|
||||
// Reset the babystepping values, so the printer will not move the Z axis up when the babystepping is enabled.
|
||||
eeprom_update_word((uint16_t*)EEPROM_BABYSTEP_Z, 0);
|
||||
// Show the message.
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_FOLLOW_CALIBRATION_FLOW);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_FOLLOW_CALIBRATION_FLOW));
|
||||
}
|
||||
else if (calibration_status() == CALIBRATION_STATUS_LIVE_ADJUST) {
|
||||
// Show the message.
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_BABYSTEP_Z_NOT_SET);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_BABYSTEP_Z_NOT_SET));
|
||||
lcd_update_enable(true);
|
||||
}
|
||||
else if (calibration_status() == CALIBRATION_STATUS_CALIBRATED && temp_cal_active == true && calibration_status_pinda() == false) {
|
||||
@ -1361,7 +1361,7 @@ void setup()
|
||||
}
|
||||
else if (calibration_status() == CALIBRATION_STATUS_Z_CALIBRATION) {
|
||||
// Show the message.
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_FOLLOW_CALIBRATION_FLOW);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_FOLLOW_CALIBRATION_FLOW));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1404,12 +1404,12 @@ void setup()
|
||||
#ifdef UVLO_SUPPORT
|
||||
if (eeprom_read_byte((uint8_t*)EEPROM_UVLO) == 1) { //previous print was terminated by UVLO
|
||||
/*
|
||||
if (lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_RECOVER_PRINT, false)) recover_print();
|
||||
if (lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_RECOVER_PRINT), false)) recover_print();
|
||||
else {
|
||||
eeprom_update_byte((uint8_t*)EEPROM_UVLO, 0);
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
}
|
||||
*/
|
||||
manage_heater(); // Update temperatures
|
||||
@ -1430,12 +1430,12 @@ void setup()
|
||||
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
|
||||
MYSERIAL.println("Normal recovery!");
|
||||
#endif
|
||||
if ( lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_RECOVER_PRINT, false) ) recover_print(0);
|
||||
if ( lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_RECOVER_PRINT), false) ) recover_print(0);
|
||||
else {
|
||||
eeprom_update_byte((uint8_t*)EEPROM_UVLO, 0);
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
}
|
||||
|
||||
}
|
||||
@ -1630,7 +1630,7 @@ void loop()
|
||||
if(card.logging)
|
||||
process_commands();
|
||||
else
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
||||
SERIAL_PROTOCOLLNRPGM(_T(MSG_OK));
|
||||
} else {
|
||||
card.closefile();
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_FILE_SAVED);
|
||||
@ -1880,7 +1880,7 @@ static float probe_pt(float x, float y, float z_before) {
|
||||
run_z_probe();
|
||||
float measured_z = current_position[Z_AXIS];
|
||||
|
||||
SERIAL_PROTOCOLRPGM(MSG_BED);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_BED));
|
||||
SERIAL_PROTOCOLPGM(" x: ");
|
||||
SERIAL_PROTOCOL(x);
|
||||
SERIAL_PROTOCOLPGM(" y: ");
|
||||
@ -1943,9 +1943,9 @@ bool check_commands() {
|
||||
#ifdef TMC2130
|
||||
bool calibrate_z_auto()
|
||||
{
|
||||
//lcd_display_message_fullscreen_P(MSG_CALIBRATE_Z_AUTO);
|
||||
//lcd_display_message_fullscreen_P(_T(MSG_CALIBRATE_Z_AUTO));
|
||||
lcd_implementation_clear();
|
||||
lcd_print_at_PGM(0,1, MSG_CALIBRATE_Z_AUTO);
|
||||
lcd_print_at_PGM(0,1, _T(MSG_CALIBRATE_Z_AUTO));
|
||||
bool endstops_enabled = enable_endstops(true);
|
||||
int axis_up_dir = -home_dir(Z_AXIS);
|
||||
tmc2130_home_enter(Z_AXIS_MASK);
|
||||
@ -2299,7 +2299,7 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
|
||||
// Home in the XY plane.
|
||||
//set_destination_to_current();
|
||||
setup_for_endstop_move();
|
||||
lcd_display_message_fullscreen_P(MSG_AUTO_HOME);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_AUTO_HOME));
|
||||
home_xy();
|
||||
|
||||
enable_endstops(false);
|
||||
@ -2327,15 +2327,15 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
|
||||
{
|
||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||
#ifdef STEEL_SHEET
|
||||
bool result = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_STEEL_SHEET_CHECK, false, false);
|
||||
if(result) lcd_show_fullscreen_message_and_wait_P(MSG_REMOVE_STEEL_SHEET);
|
||||
bool result = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false, false);
|
||||
if(result) lcd_show_fullscreen_message_and_wait_P(_T(MSG_REMOVE_STEEL_SHEET));
|
||||
#endif //STEEL_SHEET
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_CONFIRM_NOZZLE_CLEAN);
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_PAPER);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_CONFIRM_NOZZLE_CLEAN));
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
|
||||
KEEPALIVE_STATE(IN_HANDLER);
|
||||
lcd_display_message_fullscreen_P(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
|
||||
lcd_implementation_print_at(0, 2, 1);
|
||||
lcd_printPGM(MSG_FIND_BED_OFFSET_AND_SKEW_LINE2);
|
||||
lcd_printPGM(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE2));
|
||||
}
|
||||
// Move the print head close to the bed.
|
||||
current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
|
||||
@ -2428,7 +2428,7 @@ bool gcode_M45(bool onlyZ, int8_t verbosity_level)
|
||||
{
|
||||
// Calibration valid, the machine should be able to print. Advise the user to run the V2Calibration.gcode.
|
||||
calibration_status_store(CALIBRATION_STATUS_LIVE_ADJUST);
|
||||
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) != 1) lcd_show_fullscreen_message_and_wait_P(MSG_BABYSTEP_Z_NOT_SET);
|
||||
if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) != 1) lcd_show_fullscreen_message_and_wait_P(_T(MSG_BABYSTEP_Z_NOT_SET));
|
||||
final_result = true;
|
||||
}
|
||||
}
|
||||
@ -2485,7 +2485,7 @@ void gcode_M701()
|
||||
custom_message = true;
|
||||
custom_message_type = 2;
|
||||
|
||||
lcd_setstatuspgm(MSG_LOADING_FILAMENT);
|
||||
lcd_setstatuspgm(_T(MSG_LOADING_FILAMENT));
|
||||
current_position[E_AXIS] += 70;
|
||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 400 / 60, active_extruder); //fast sequence
|
||||
|
||||
@ -2498,7 +2498,7 @@ void gcode_M701()
|
||||
noTone(BEEPER);
|
||||
|
||||
if (!farm_mode && loading_flag) {
|
||||
bool clean = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_FILAMENT_CLEAN, false, true);
|
||||
bool clean = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_CLEAN), false, true);
|
||||
|
||||
while (!clean) {
|
||||
lcd_update_enable(true);
|
||||
@ -2506,14 +2506,14 @@ void gcode_M701()
|
||||
current_position[E_AXIS] += 25;
|
||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 100 / 60, active_extruder); //slow sequence
|
||||
st_synchronize();
|
||||
clean = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_FILAMENT_CLEAN, false, true);
|
||||
clean = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_CLEAN), false, true);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
disable_z();
|
||||
loading_flag = false;
|
||||
custom_message = false;
|
||||
@ -2777,7 +2777,7 @@ void process_commands()
|
||||
disable_e2();
|
||||
delay(100);
|
||||
|
||||
//LCD_ALERTMESSAGEPGM(MSG_FILAMENTCHANGE);
|
||||
//LCD_ALERTMESSAGEPGM(_T(MSG_FILAMENTCHANGE));
|
||||
uint8_t cnt=0;
|
||||
int counterBeep = 0;
|
||||
lcd_wait_interact();
|
||||
@ -3405,7 +3405,7 @@ void process_commands()
|
||||
feedrate = homing_feedrate[Z_AXIS];
|
||||
|
||||
run_z_probe();
|
||||
SERIAL_PROTOCOLPGM(MSG_BED);
|
||||
SERIAL_PROTOCOLPGM(_T(MSG_BED));
|
||||
SERIAL_PROTOCOLPGM(" X: ");
|
||||
SERIAL_PROTOCOL(current_position[X_AXIS]);
|
||||
SERIAL_PROTOCOLPGM(" Y: ");
|
||||
@ -3437,7 +3437,7 @@ void process_commands()
|
||||
feedrate = homing_feedrate[Z_AXIS];
|
||||
|
||||
find_bed_induction_sensor_point_z(-10.f, 3);
|
||||
SERIAL_PROTOCOLRPGM(MSG_BED);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_BED));
|
||||
SERIAL_PROTOCOLPGM(" X: ");
|
||||
MYSERIAL.print(current_position[X_AXIS], 5);
|
||||
SERIAL_PROTOCOLPGM(" Y: ");
|
||||
@ -3475,7 +3475,7 @@ void process_commands()
|
||||
break;
|
||||
}
|
||||
lcd_show_fullscreen_message_and_wait_P(_i("Stable ambient temperature 21-26C is needed a rigid stand is required."));////MSG_TEMP_CAL_WARNING c=20 r=4
|
||||
bool result = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_STEEL_SHEET_CHECK, false, false);
|
||||
bool result = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false, false);
|
||||
|
||||
if (result)
|
||||
{
|
||||
@ -3483,7 +3483,7 @@ void process_commands()
|
||||
current_position[Y_AXIS] += 180;
|
||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 3000 / 60, active_extruder);
|
||||
st_synchronize();
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_REMOVE_STEEL_SHEET);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_REMOVE_STEEL_SHEET));
|
||||
current_position[Y_AXIS] -= 180;
|
||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 3000 / 60, active_extruder);
|
||||
st_synchronize();
|
||||
@ -3521,7 +3521,7 @@ void process_commands()
|
||||
custom_message = true;
|
||||
custom_message_type = 4;
|
||||
custom_message_state = 1;
|
||||
custom_message = MSG_TEMP_CALIBRATION;
|
||||
custom_message = _T(MSG_TEMP_CALIBRATION);
|
||||
current_position[X_AXIS] = PINDA_PREHEAT_X;
|
||||
current_position[Y_AXIS] = PINDA_PREHEAT_Y;
|
||||
current_position[Z_AXIS] = PINDA_PREHEAT_Z;
|
||||
@ -3637,7 +3637,7 @@ void process_commands()
|
||||
custom_message = true;
|
||||
custom_message_type = 4;
|
||||
custom_message_state = 1;
|
||||
custom_message = MSG_TEMP_CALIBRATION;
|
||||
custom_message = _T(MSG_TEMP_CALIBRATION);
|
||||
current_position[X_AXIS] = PINDA_PREHEAT_X;
|
||||
current_position[Y_AXIS] = PINDA_PREHEAT_Y;
|
||||
current_position[Z_AXIS] = PINDA_PREHEAT_Z;
|
||||
@ -3726,7 +3726,7 @@ void process_commands()
|
||||
disable_e1();
|
||||
disable_e2();
|
||||
setTargetBed(0); //set bed target temperature back to 0
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_TEMP_CALIBRATION_DONE);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_TEMP_CALIBRATION_DONE));
|
||||
temp_cal_active = true;
|
||||
eeprom_update_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE, 1);
|
||||
lcd_update_enable(true);
|
||||
@ -3803,7 +3803,7 @@ void process_commands()
|
||||
//previously enqueued "G28 W0" failed (crash Z)
|
||||
if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && !axis_known_position[Z_AXIS] && (READ(Z_TMC2130_DIAG) != 0))
|
||||
{
|
||||
kill(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
||||
kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
||||
break;
|
||||
}
|
||||
#endif //TMC2130
|
||||
@ -3955,7 +3955,7 @@ void process_commands()
|
||||
// Go down until endstop is hit
|
||||
const float Z_CALIBRATION_THRESHOLD = 1.f;
|
||||
if (!find_bed_induction_sensor_point_z((has_z && mesh_point > 0) ? z0 - Z_CALIBRATION_THRESHOLD : -10.f)) { //if we have data from z calibration max allowed difference is 1mm for each point, if we dont have data max difference is 10mm from initial point
|
||||
kill_message = MSG_BED_LEVELING_FAILED_POINT_LOW;
|
||||
kill_message = _T(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
||||
break;
|
||||
}
|
||||
if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
|
||||
@ -4317,7 +4317,7 @@ void process_commands()
|
||||
if (IS_SD_PRINTING)
|
||||
LCD_MESSAGERPGM(_i("Resuming print"));////MSG_RESUMING c=0 r=0
|
||||
else
|
||||
LCD_MESSAGERPGM(WELCOME_MSG);
|
||||
LCD_MESSAGERPGM(_T(WELCOME_MSG));
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
@ -4945,7 +4945,7 @@ Sigma_Exit:
|
||||
if(setTargetedHotend(109)){
|
||||
break;
|
||||
}
|
||||
LCD_MESSAGERPGM(MSG_HEATING);
|
||||
LCD_MESSAGERPGM(_T(MSG_HEATING));
|
||||
heating_status = 1;
|
||||
if (farm_mode) { prusa_statistics(1); };
|
||||
|
||||
@ -4981,7 +4981,7 @@ Sigma_Exit:
|
||||
|
||||
wait_for_heater(codenum); //loops until target temperature is reached
|
||||
|
||||
LCD_MESSAGERPGM(MSG_HEATING_COMPLETE);
|
||||
LCD_MESSAGERPGM(_T(MSG_HEATING_COMPLETE));
|
||||
KEEPALIVE_STATE(IN_HANDLER);
|
||||
heating_status = 2;
|
||||
if (farm_mode) { prusa_statistics(2); };
|
||||
@ -4992,7 +4992,7 @@ Sigma_Exit:
|
||||
break;
|
||||
case 190: // M190 - Wait for bed heater to reach target.
|
||||
#if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1
|
||||
LCD_MESSAGERPGM(MSG_BED_HEATING);
|
||||
LCD_MESSAGERPGM(_T(MSG_BED_HEATING));
|
||||
heating_status = 3;
|
||||
if (farm_mode) { prusa_statistics(1); };
|
||||
if (code_seen('S'))
|
||||
@ -5032,7 +5032,7 @@ Sigma_Exit:
|
||||
manage_inactivity();
|
||||
lcd_update();
|
||||
}
|
||||
LCD_MESSAGERPGM(MSG_BED_DONE);
|
||||
LCD_MESSAGERPGM(_T(MSG_BED_DONE));
|
||||
KEEPALIVE_STATE(IN_HANDLER);
|
||||
heating_status = 4;
|
||||
|
||||
@ -5069,7 +5069,7 @@ Sigma_Exit:
|
||||
|
||||
#ifdef ULTIPANEL
|
||||
powersupply = true;
|
||||
LCD_MESSAGERPGM(WELCOME_MSG);
|
||||
LCD_MESSAGERPGM(_T(WELCOME_MSG));
|
||||
lcd_update();
|
||||
#endif
|
||||
break;
|
||||
@ -5100,7 +5100,7 @@ Sigma_Exit:
|
||||
MSGOFF = "Vypnuto"
|
||||
"Prusai3"" ""vypnuto""."
|
||||
|
||||
"Prusa i3"" "MSG_ALL[lang_selected][50]"."
|
||||
"Prusa i3"" "_T(MSG_ALL)[lang_selected][50]"."
|
||||
*/
|
||||
lcd_update();
|
||||
#endif
|
||||
@ -5230,54 +5230,54 @@ Sigma_Exit:
|
||||
#if defined(X_MIN_PIN) && X_MIN_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(_n("x_min: "));////MSG_X_MIN c=0 r=0
|
||||
if(READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
#if defined(X_MAX_PIN) && X_MAX_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(_n("x_max: "));////MSG_X_MAX c=0 r=0
|
||||
if(READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
#if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(_n("y_min: "));////MSG_Y_MIN c=0 r=0
|
||||
if(READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
#if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(_n("y_max: "));////MSG_Y_MAX c=0 r=0
|
||||
if(READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
#if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(MSG_Z_MIN);
|
||||
if(READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
#if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
|
||||
SERIAL_PROTOCOLRPGM(MSG_Z_MAX);
|
||||
if(READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING){
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_HIT));
|
||||
}else{
|
||||
SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_ENDSTOP_OPEN));
|
||||
}
|
||||
SERIAL_PROTOCOLLN("");
|
||||
#endif
|
||||
@ -5588,7 +5588,7 @@ Sigma_Exit:
|
||||
}
|
||||
}
|
||||
else if (servo_index >= 0) {
|
||||
SERIAL_PROTOCOL(MSG_OK);
|
||||
SERIAL_PROTOCOL(_T(MSG_OK));
|
||||
SERIAL_PROTOCOL(" Servo ");
|
||||
SERIAL_PROTOCOL(servo_index);
|
||||
SERIAL_PROTOCOL(": ");
|
||||
@ -5636,7 +5636,7 @@ Sigma_Exit:
|
||||
#endif
|
||||
|
||||
updatePID();
|
||||
SERIAL_PROTOCOLRPGM(MSG_OK);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_OK));
|
||||
SERIAL_PROTOCOL(" p:");
|
||||
SERIAL_PROTOCOL(Kp);
|
||||
SERIAL_PROTOCOL(" i:");
|
||||
@ -5660,7 +5660,7 @@ Sigma_Exit:
|
||||
if(code_seen('D')) bedKd = scalePID_d(code_value());
|
||||
|
||||
updatePID();
|
||||
SERIAL_PROTOCOLRPGM(MSG_OK);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_OK));
|
||||
SERIAL_PROTOCOL(" p:");
|
||||
SERIAL_PROTOCOL(bedKp);
|
||||
SERIAL_PROTOCOL(" i:");
|
||||
@ -5788,7 +5788,7 @@ Sigma_Exit:
|
||||
{
|
||||
zprobe_zoffset = -value; // compare w/ line 278 of ConfigurationStore.cpp
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOLNRPGM(CAT4(MSG_ZPROBE_ZOFFSET, " ", MSG_OK,PSTR("")));
|
||||
SERIAL_ECHOLNRPGM(CAT4(MSG_ZPROBE_ZOFFSET, " ", _T(MSG_OK),PSTR("")));
|
||||
SERIAL_PROTOCOLLN("");
|
||||
}
|
||||
else
|
||||
@ -5911,7 +5911,7 @@ Sigma_Exit:
|
||||
fanSpeed = 0;
|
||||
unsigned long waiting_start_time = millis();
|
||||
uint8_t wait_for_user_state = 0;
|
||||
lcd_display_message_fullscreen_P(MSG_PRESS_TO_UNLOAD);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
|
||||
while (!(wait_for_user_state == 0 && lcd_clicked())){
|
||||
|
||||
//cnt++;
|
||||
@ -5977,7 +5977,7 @@ Sigma_Exit:
|
||||
case 2:
|
||||
|
||||
if (abs(degTargetHotend(active_extruder) - degHotend(active_extruder)) < 1) {
|
||||
lcd_display_message_fullscreen_P(MSG_PRESS_TO_UNLOAD);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
|
||||
waiting_start_time = millis();
|
||||
wait_for_user_state = 0;
|
||||
}
|
||||
@ -5997,10 +5997,10 @@ Sigma_Exit:
|
||||
|
||||
|
||||
// Unload filament
|
||||
lcd_display_message_fullscreen_P(MSG_UNLOADING_FILAMENT);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_UNLOADING_FILAMENT));
|
||||
KEEPALIVE_STATE(IN_HANDLER);
|
||||
custom_message = true;
|
||||
lcd_setstatuspgm(MSG_UNLOADING_FILAMENT);
|
||||
lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
|
||||
|
||||
if (code_seen('L'))
|
||||
{
|
||||
@ -6074,7 +6074,7 @@ Sigma_Exit:
|
||||
//finish moves
|
||||
st_synchronize();
|
||||
|
||||
lcd_display_message_fullscreen_P(MSG_PULL_OUT_FILAMENT);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));
|
||||
|
||||
//disable extruder steppers so filament can be removed
|
||||
disable_e0();
|
||||
@ -6268,7 +6268,7 @@ Sigma_Exit:
|
||||
sprintf_P(cmd, PSTR("M220 S%i"), feedmultiplyBckp);
|
||||
enquecommand(cmd);
|
||||
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
custom_message = false;
|
||||
custom_message_type = 0;
|
||||
|
||||
@ -6315,7 +6315,7 @@ Sigma_Exit:
|
||||
break;
|
||||
}
|
||||
|
||||
LCD_MESSAGERPGM(MSG_PLEASE_WAIT);
|
||||
LCD_MESSAGERPGM(_T(MSG_PLEASE_WAIT));
|
||||
|
||||
SERIAL_PROTOCOLPGM("Wait for PINDA target temperature:");
|
||||
SERIAL_PROTOCOL(setTargetPinda);
|
||||
@ -6340,7 +6340,7 @@ Sigma_Exit:
|
||||
manage_inactivity();
|
||||
lcd_update();
|
||||
}
|
||||
LCD_MESSAGERPGM(MSG_OK);
|
||||
LCD_MESSAGERPGM(_T(MSG_OK));
|
||||
|
||||
break;
|
||||
}
|
||||
@ -6612,7 +6612,7 @@ Sigma_Exit:
|
||||
#endif //PAT9125
|
||||
custom_message = true;
|
||||
custom_message_type = 2;
|
||||
lcd_setstatuspgm(MSG_UNLOADING_FILAMENT);
|
||||
lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
|
||||
|
||||
// extr_unload2();
|
||||
|
||||
@ -6626,7 +6626,7 @@ Sigma_Exit:
|
||||
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 1000 / 60, active_extruder);
|
||||
st_synchronize();
|
||||
|
||||
lcd_display_message_fullscreen_P(MSG_PULL_OUT_FILAMENT);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));
|
||||
|
||||
//disable extruder steppers so filament can be removed
|
||||
disable_e0();
|
||||
@ -6648,7 +6648,7 @@ Sigma_Exit:
|
||||
|
||||
lcd_update_enable(true);
|
||||
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
custom_message = false;
|
||||
custom_message_type = 0;
|
||||
#ifdef PAT9125
|
||||
@ -6844,7 +6844,7 @@ void FlushSerialRequestResend()
|
||||
SERIAL_PROTOCOLRPGM(_i("Resend: "));////MSG_RESEND c=0 r=0
|
||||
SERIAL_PROTOCOLLN(gcode_LastN + 1);
|
||||
previous_millis_cmd = millis();
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
||||
SERIAL_PROTOCOLLNRPGM(_T(MSG_OK));
|
||||
}
|
||||
|
||||
// Confirm the execution of a command, if sent from a serial line.
|
||||
@ -6853,7 +6853,7 @@ void ClearToSend()
|
||||
{
|
||||
previous_millis_cmd = millis();
|
||||
if (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB)
|
||||
SERIAL_PROTOCOLLNRPGM(MSG_OK);
|
||||
SERIAL_PROTOCOLLNRPGM(_T(MSG_OK));
|
||||
}
|
||||
|
||||
#if MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3
|
||||
@ -7191,9 +7191,9 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s
|
||||
lcd_update_enable(false);
|
||||
lcd_implementation_clear();
|
||||
lcd.setCursor(0, 0);
|
||||
lcd_printPGM(MSG_ERROR);
|
||||
lcd_printPGM(_T(MSG_ERROR));
|
||||
lcd.setCursor(0, 2);
|
||||
lcd_printPGM(MSG_PREHEAT_NOZZLE);
|
||||
lcd_printPGM(_T(MSG_PREHEAT_NOZZLE));
|
||||
delay(2000);
|
||||
lcd_implementation_clear();
|
||||
lcd_update_enable(true);
|
||||
@ -7351,8 +7351,8 @@ void Stop()
|
||||
Stopped = true;
|
||||
Stopped_gcode_LastN = gcode_LastN; // Save last g_code for restart
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED);
|
||||
LCD_MESSAGERPGM(MSG_STOPPED);
|
||||
SERIAL_ERRORLNRPGM(_T(MSG_ERR_STOPPED));
|
||||
LCD_MESSAGERPGM(_T(MSG_STOPPED));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -211,7 +211,7 @@ void CardReader::initsd()
|
||||
/*
|
||||
if(!workDir.openRoot(&volume))
|
||||
{
|
||||
SERIAL_ECHOLNPGM(MSG_SD_WORKDIR_FAIL);
|
||||
SERIAL_ECHOLNPGM(_T(MSG_SD_WORKDIR_FAIL));
|
||||
}
|
||||
*/
|
||||
|
||||
@ -221,7 +221,7 @@ void CardReader::setroot()
|
||||
{
|
||||
/*if(!workDir.openRoot(&volume))
|
||||
{
|
||||
SERIAL_ECHOLNPGM(MSG_SD_WORKDIR_FAIL);
|
||||
SERIAL_ECHOLNPGM(_T(MSG_SD_WORKDIR_FAIL));
|
||||
}*/
|
||||
workDir=root;
|
||||
|
||||
@ -360,7 +360,7 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
||||
SERIAL_ECHOLN(subdirname);
|
||||
if(!myDir.open(curDir,subdirname,O_READ))
|
||||
{
|
||||
SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_SD_OPEN_FILE_FAIL));
|
||||
SERIAL_PROTOCOL(subdirname);
|
||||
SERIAL_PROTOCOLLNPGM(".");
|
||||
return;
|
||||
@ -405,7 +405,7 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
||||
}
|
||||
else
|
||||
{
|
||||
SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_SD_OPEN_FILE_FAIL));
|
||||
SERIAL_PROTOCOL(fname);
|
||||
SERIAL_PROTOCOLLNPGM(".");
|
||||
}
|
||||
@ -414,7 +414,7 @@ void CardReader::openFile(char* name,bool read, bool replace_current/*=true*/)
|
||||
{ //write
|
||||
if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC))
|
||||
{
|
||||
SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
|
||||
SERIAL_PROTOCOLRPGM(_T(MSG_SD_OPEN_FILE_FAIL));
|
||||
SERIAL_PROTOCOL(fname);
|
||||
SERIAL_PROTOCOLLNPGM(".");
|
||||
}
|
||||
@ -546,7 +546,7 @@ void CardReader::write_command(char *buf)
|
||||
if (file.writeError)
|
||||
{
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ERRORLNRPGM(MSG_SD_ERR_WRITE_TO_FILE);
|
||||
SERIAL_ERRORLNRPGM(_T(MSG_SD_ERR_WRITE_TO_FILE));
|
||||
}
|
||||
}
|
||||
|
||||
@ -558,7 +558,7 @@ void CardReader::write_command_no_newline(char *buf)
|
||||
if (file.writeError)
|
||||
{
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ERRORLNRPGM(MSG_SD_ERR_WRITE_TO_FILE);
|
||||
SERIAL_ERRORLNRPGM(_T(MSG_SD_ERR_WRITE_TO_FILE));
|
||||
MYSERIAL.println("An error while writing to the SD Card.");
|
||||
}
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ void enquecommand(const char *cmd, bool from_progmem)
|
||||
else
|
||||
strcpy(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHORPGM(MSG_Enqueing);
|
||||
SERIAL_ECHORPGM(_T(MSG_Enqueing));
|
||||
SERIAL_ECHO(cmdbuffer + bufindw + CMDHDRSIZE);
|
||||
SERIAL_ECHOLNPGM("\"");
|
||||
bufindw += len + (CMDHDRSIZE + 1);
|
||||
@ -298,7 +298,7 @@ void enquecommand(const char *cmd, bool from_progmem)
|
||||
#endif /* CMDBUFFER_DEBUG */
|
||||
} else {
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ECHORPGM(MSG_Enqueing);
|
||||
SERIAL_ECHORPGM(_T(MSG_Enqueing));
|
||||
if (from_progmem)
|
||||
SERIAL_PROTOCOLRPGM(cmd);
|
||||
else
|
||||
@ -483,8 +483,8 @@ void get_command()
|
||||
if (Stopped == true) {
|
||||
int gcode = strtol(strchr_pointer+1, NULL, 10);
|
||||
if (gcode >= 0 && gcode <= 3) {
|
||||
SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED);
|
||||
LCD_MESSAGERPGM(MSG_STOPPED);
|
||||
SERIAL_ERRORLNRPGM(_T(MSG_ERR_STOPPED));
|
||||
LCD_MESSAGERPGM(_T(MSG_STOPPED));
|
||||
}
|
||||
}
|
||||
} // end of 'G' command
|
||||
|
@ -2182,7 +2182,7 @@ BedSkewOffsetDetectionResultType find_bed_offset_and_skew(int8_t verbosity_level
|
||||
#endif // SUPPORT_VERBOSITY
|
||||
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
|
||||
uint8_t next_line;
|
||||
lcd_display_message_fullscreen_P(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1, next_line);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1), next_line);
|
||||
if (next_line > 3)
|
||||
next_line = 3;
|
||||
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
|
||||
@ -2194,7 +2194,7 @@ BedSkewOffsetDetectionResultType find_bed_offset_and_skew(int8_t verbosity_level
|
||||
refresh_cmd_timeout();
|
||||
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
|
||||
lcd_implementation_print_at(0, next_line, k + 1);
|
||||
lcd_printPGM(MSG_FIND_BED_OFFSET_AND_SKEW_LINE2);
|
||||
lcd_printPGM(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE2));
|
||||
|
||||
if (iteration > 0) {
|
||||
lcd_print_at_PGM(0, next_line + 1, _i("Iteration "));////MSG_FIND_BED_OFFSET_AND_SKEW_ITERATION c=20 r=0
|
||||
@ -2725,7 +2725,7 @@ bool sample_z() {
|
||||
go_to_current(homing_feedrate[Z_AXIS] / 60);
|
||||
//plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feedrate, active_extruder););
|
||||
|
||||
lcd_show_fullscreen_message_and_wait_P(MSG_PLACE_STEEL_SHEET);
|
||||
lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
|
||||
|
||||
// Sample Z heights for the mesh bed leveling.
|
||||
// In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
|
||||
@ -2767,12 +2767,12 @@ bool sample_mesh_and_store_reference()
|
||||
|
||||
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
|
||||
uint8_t next_line;
|
||||
lcd_display_message_fullscreen_P(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1, next_line);
|
||||
lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1), next_line);
|
||||
if (next_line > 3)
|
||||
next_line = 3;
|
||||
// display "point xx of yy"
|
||||
lcd_implementation_print_at(0, next_line, 1);
|
||||
lcd_printPGM(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE2);
|
||||
lcd_printPGM(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE2));
|
||||
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
|
||||
|
||||
// Sample Z heights for the mesh bed leveling.
|
||||
@ -2792,7 +2792,7 @@ bool sample_mesh_and_store_reference()
|
||||
#ifdef TMC2130
|
||||
if (!axis_known_position[Z_AXIS] && (READ(Z_TMC2130_DIAG) != 0)) //Z crash
|
||||
{
|
||||
kill(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
||||
kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
||||
return false;
|
||||
}
|
||||
#endif //TMC2130
|
||||
@ -2800,7 +2800,7 @@ bool sample_mesh_and_store_reference()
|
||||
enable_endstops(false);
|
||||
if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
|
||||
{
|
||||
kill(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
||||
kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
||||
return false;
|
||||
}
|
||||
mbl.set_z(0, 0, current_position[Z_AXIS]);
|
||||
@ -2818,11 +2818,11 @@ bool sample_mesh_and_store_reference()
|
||||
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
|
||||
// display "point xx of yy"
|
||||
lcd_implementation_print_at(0, next_line, mesh_point+1);
|
||||
lcd_printPGM(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE2);
|
||||
lcd_printPGM(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE2));
|
||||
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
|
||||
if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
|
||||
{
|
||||
kill(MSG_BED_LEVELING_FAILED_POINT_LOW);
|
||||
kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
|
||||
return false;
|
||||
}
|
||||
// Get cords of measuring point
|
||||
|
@ -227,18 +227,18 @@ void checkHitEndstops()
|
||||
{
|
||||
if( endstop_x_hit || endstop_y_hit || endstop_z_hit) {
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHORPGM(MSG_ENDSTOPS_HIT);
|
||||
SERIAL_ECHORPGM(_T(MSG_ENDSTOPS_HIT));
|
||||
if(endstop_x_hit) {
|
||||
SERIAL_ECHOPAIR(" X:",(float)endstops_trigsteps[X_AXIS]/axis_steps_per_unit[X_AXIS]);
|
||||
LCD_MESSAGERPGM(CAT2(MSG_ENDSTOPS_HIT, PSTR("X")));
|
||||
LCD_MESSAGERPGM(CAT2(_T(MSG_ENDSTOPS_HIT), PSTR("X")));
|
||||
}
|
||||
if(endstop_y_hit) {
|
||||
SERIAL_ECHOPAIR(" Y:",(float)endstops_trigsteps[Y_AXIS]/axis_steps_per_unit[Y_AXIS]);
|
||||
LCD_MESSAGERPGM(CAT2(MSG_ENDSTOPS_HIT, PSTR("Y")));
|
||||
LCD_MESSAGERPGM(CAT2(_T(MSG_ENDSTOPS_HIT), PSTR("Y")));
|
||||
}
|
||||
if(endstop_z_hit) {
|
||||
SERIAL_ECHOPAIR(" Z:",(float)endstops_trigsteps[Z_AXIS]/axis_steps_per_unit[Z_AXIS]);
|
||||
LCD_MESSAGERPGM(CAT2(MSG_ENDSTOPS_HIT,PSTR("Z")));
|
||||
LCD_MESSAGERPGM(CAT2(_T(MSG_ENDSTOPS_HIT),PSTR("Z")));
|
||||
}
|
||||
SERIAL_ECHOLN("");
|
||||
endstop_x_hit=false;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -934,22 +934,22 @@ if (print_sd_status)
|
||||
{
|
||||
case 1:
|
||||
lcd.setCursor(0, 3);
|
||||
lcd_printPGM(MSG_HEATING);
|
||||
lcd_printPGM(_T(MSG_HEATING));
|
||||
break;
|
||||
case 2:
|
||||
lcd.setCursor(0, 3);
|
||||
lcd_printPGM(MSG_HEATING_COMPLETE);
|
||||
lcd_printPGM(_T(MSG_HEATING_COMPLETE));
|
||||
heating_status = 0;
|
||||
heating_status_counter = 0;
|
||||
custom_message = false;
|
||||
break;
|
||||
case 3:
|
||||
lcd.setCursor(0, 3);
|
||||
lcd_printPGM(MSG_BED_HEATING);
|
||||
lcd_printPGM(_T(MSG_BED_HEATING));
|
||||
break;
|
||||
case 4:
|
||||
lcd.setCursor(0, 3);
|
||||
lcd_printPGM(MSG_BED_DONE);
|
||||
lcd_printPGM(_T(MSG_BED_DONE));
|
||||
heating_status = 0;
|
||||
heating_status_counter = 0;
|
||||
custom_message = false;
|
||||
@ -976,8 +976,8 @@ if (print_sd_status)
|
||||
{
|
||||
if (custom_message_state == 3)
|
||||
{
|
||||
lcd_printPGM(WELCOME_MSG);
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
lcd_printPGM(_T(WELCOME_MSG));
|
||||
lcd_setstatuspgm(_T(WELCOME_MSG));
|
||||
custom_message = false;
|
||||
custom_message_type = 0;
|
||||
}
|
||||
@ -1012,7 +1012,7 @@ if (print_sd_status)
|
||||
if (custom_message_type == 4) {
|
||||
char progress[4];
|
||||
lcd.setCursor(0, 3);
|
||||
lcd_printPGM(MSG_TEMP_CALIBRATION);
|
||||
lcd_printPGM(_T(MSG_TEMP_CALIBRATION));
|
||||
lcd.setCursor(12, 3);
|
||||
sprintf(progress, "%d/6", custom_message_state);
|
||||
lcd.print(progress);
|
||||
|
96
lang_upgrade/fix_1.out
Normal file
96
lang_upgrade/fix_1.out
Normal file
@ -0,0 +1,96 @@
|
||||
MSG_ALL OK
|
||||
MSG_AUTO_HOME OK
|
||||
MSG_AUTO_MODE_ON OK
|
||||
MSG_BABYSTEP_Z OK
|
||||
MSG_BABYSTEP_Z_NOT_SET OK
|
||||
MSG_BED OK
|
||||
MSG_BED_DONE OK
|
||||
MSG_BED_HEATING OK
|
||||
MSG_BED_LEVELING_FAILED_POINT_LOW OK
|
||||
MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED OK
|
||||
MSG_CALIBRATE_Z_AUTO OK
|
||||
MSG_CARD_MENU OK
|
||||
MSG_CONFIRM_NOZZLE_CLEAN OK
|
||||
MSG_COOLDOWN OK
|
||||
MSG_CRASH_DETECTED OK
|
||||
MSG_CRASHDETECT_NA OK
|
||||
MSG_CRASHDETECT_OFF OK
|
||||
MSG_CRASHDETECT_ON OK
|
||||
MSG_ENDSTOP_HIT OK
|
||||
MSG_ENDSTOP_OPEN OK
|
||||
MSG_ENDSTOPS_HIT OK
|
||||
MSG_Enqueing OK
|
||||
MSG_ERR_STOPPED OK
|
||||
MSG_ERROR OK
|
||||
MSG_EXTRUDER OK
|
||||
MSG_FAN_SPEED OK
|
||||
MSG_FILAMENT_CLEAN OK
|
||||
MSG_FILAMENT_LOADING_T0 OK
|
||||
MSG_FILAMENT_LOADING_T1 OK
|
||||
MSG_FILAMENT_LOADING_T2 OK
|
||||
MSG_FILAMENT_LOADING_T3 OK
|
||||
MSG_FILAMENTCHANGE OK
|
||||
MSG_FIND_BED_OFFSET_AND_SKEW_LINE1 OK
|
||||
MSG_FIND_BED_OFFSET_AND_SKEW_LINE2 OK
|
||||
MSG_FINISHING_MOVEMENTS OK
|
||||
MSG_FOLLOW_CALIBRATION_FLOW OK
|
||||
MSG_FSENS_AUTOLOAD_NA OK
|
||||
MSG_FSENSOR_OFF OK
|
||||
MSG_FSENSOR_ON OK
|
||||
MSG_HEATING OK
|
||||
MSG_HEATING_COMPLETE OK
|
||||
MSG_HOMEYZ OK
|
||||
MSG_CHOOSE_EXTRUDER OK
|
||||
MSG_LOAD_FILAMENT OK
|
||||
MSG_LOADING_FILAMENT OK
|
||||
MSG_M117_V2_CALIBRATION OK
|
||||
MSG_MAIN OK
|
||||
MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1 OK
|
||||
MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE2 OK
|
||||
MSG_MENU_CALIBRATION OK
|
||||
MSG_NO OK
|
||||
MSG_NOZZLE OK
|
||||
MSG_OK OK
|
||||
MSG_PAPER OK
|
||||
MSG_PLACE_STEEL_SHEET OK
|
||||
MSG_PLEASE_WAIT OK
|
||||
MSG_POWERUP OK
|
||||
MSG_PREHEAT_NOZZLE OK
|
||||
MSG_PRESS_TO_UNLOAD OK
|
||||
MSG_PRINT_ABORTED OK
|
||||
MSG_PULL_OUT_FILAMENT OK
|
||||
MSG_RECOVER_PRINT OK
|
||||
MSG_REFRESH OK
|
||||
MSG_REMOVE_STEEL_SHEET OK
|
||||
MSG_SD_ERR_WRITE_TO_FILE OK
|
||||
MSG_SD_OPEN_FILE_FAIL OK
|
||||
MSG_SD_WORKDIR_FAIL OK
|
||||
MSG_SELFTEST_COOLING_FAN OK
|
||||
MSG_SELFTEST_EXTRUDER_FAN OK
|
||||
MSG_SELFTEST_FAILED OK
|
||||
MSG_SELFTEST_FAN OK
|
||||
MSG_SELFTEST_FAN_NO OK
|
||||
MSG_SELFTEST_FAN_YES OK
|
||||
MSG_SELFTEST_CHECK_BED OK
|
||||
MSG_SELFTEST_CHECK_FSENSOR OK
|
||||
MSG_SELFTEST_MOTOR OK
|
||||
MSG_SELFTEST_WIRINGERROR OK
|
||||
MSG_SETTINGS OK
|
||||
MSG_SILENT_MODE_OFF OK
|
||||
MSG_SILENT_MODE_ON OK
|
||||
MSG_STEALTH_MODE_OFF OK
|
||||
MSG_STEALTH_MODE_ON OK
|
||||
MSG_STEEL_SHEET_CHECK OK
|
||||
MSG_STOP_PRINT OK
|
||||
MSG_STOPPED OK
|
||||
MSG_TEMP_CALIBRATION OK
|
||||
MSG_TEMP_CALIBRATION_DONE OK
|
||||
MSG_UNLOAD_FILAMENT OK
|
||||
MSG_UNLOADING_FILAMENT OK
|
||||
MSG_WATCH OK
|
||||
MSG_WIZARD_CALIBRATION_FAILED OK
|
||||
MSG_WIZARD_DONE OK
|
||||
MSG_WIZARD_HEATING OK
|
||||
MSG_WIZARD_QUIT OK
|
||||
MSG_YES OK
|
||||
WELCOME_MSG OK
|
33
lang_upgrade/fix_source_1.sh
Normal file
33
lang_upgrade/fix_source_1.sh
Normal file
@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
# fix_source_1.sh - replace in code all usage of localized message constant from messages.h as _T(MSG_xxx)
|
||||
|
||||
if [ -e ./source ]; then
|
||||
echo 'folder ./source already exists.'
|
||||
read
|
||||
exit
|
||||
fi
|
||||
|
||||
#create target folder
|
||||
echo 'creating target folder...'
|
||||
mkdir ./source
|
||||
#list all source files except *language* and *messages*
|
||||
files=$(ls ../Firmware/*.c* | grep -v 'language' | grep -v 'messages'; ls ../Firmware/*.h | grep -v 'language' | grep -v 'messages' )
|
||||
echo 'copying files...'
|
||||
cp $files ./source/
|
||||
#list all source files in target folder
|
||||
files=$(ls ./source/*.c*; ls ./source/*.h )
|
||||
|
||||
#replace source - internatinalized messages used once with _i("TEXT")
|
||||
echo 'processing msgs_en_used_once.txt'
|
||||
cat msgs_en_used_more.txt | sed "s/\\\\/\\\\\\\\/g;s/\//\\\\\\\\\//g" | while read name cols rows text; do
|
||||
if sed -i -E "s/\b$name\b/_T\($name\)/g" $files; then
|
||||
echo "$name OK"
|
||||
else
|
||||
echo "$name NG!"
|
||||
fi
|
||||
done | tee fix_1.out
|
||||
|
||||
echo "fix1 finished... press key"
|
||||
|
||||
read
|
||||
exit
|
Loading…
Reference in New Issue
Block a user