ENH: [STUDIO-4062] print status supplement

Change-Id: I298d4fcfda51b48c90c62936185efc1a6bf459f0
This commit is contained in:
Kunlong Ma 2023-08-18 15:44:12 +08:00 committed by Lane.Wei
parent d3d5751814
commit fc3891d6a4

View file

@ -21,7 +21,7 @@
namespace pt = boost::property_tree;
const int PRINTING_STAGE_COUNT = 20;
const int PRINTING_STAGE_COUNT = 32;
std::string PRINTING_STAGE_STR[PRINTING_STAGE_COUNT] = {
"printing",
"bed_leveling",
@ -42,7 +42,19 @@ std::string PRINTING_STAGE_STR[PRINTING_STAGE_COUNT] = {
"user_pause",
"toolhead_shell_off_pause",
"scanner_laser_para_cali",
"extruder_absolute_flow_cali"
"extruder_absolute_flow_cali",
"hotend_temperature_error_pause", // 20
"heated_bed_temperature_error_pause",
"filament_unloading",
"skip_step_pause",
"filament_loading",
"motor_noise_calibration",
"ams_lost_pause",
"heat_break_fan_pause",
"chamber_temperature_control_error_pause",
"chamber_cooling",
"user_insert_gcode_pause",
"motor_noise_showoff"
};
@ -97,6 +109,24 @@ wxString get_stage_string(int stage)
return _L("Paused due to nozzle temperature malfunction");
case 21:
return _L("Paused due to heat bed temperature malfunction");
case 22:
return _L("Filament unloading");
case 23:
return _L("Skip step pause");
case 24:
return _L("Filament loading");
case 25:
return _L("Motor noise calibration");
case 26:
return _L("Paused due to AMS lost");
case 27:
return _L("Paused due to low speed of the heat break fan");
case 28:
return _L("Paused due to chamber temperature control error");
case 29:
return _L("Cooling chamber");
case 30:
return _L("Motor noise showoff");
default:
;
}