ENH: add more print stage values

Change-Id: I098eb4bae14cbfd44af2dea7fb108bbc07d47407
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-08-08 19:47:54 +08:00 committed by Lane.Wei
parent 87e8c64cb0
commit 08ce9fe662
2 changed files with 16 additions and 21 deletions

View file

@ -21,7 +21,7 @@
namespace pt = boost::property_tree;
const int PRINTING_STAGE_COUNT = 20;
const int PRINTING_STAGE_COUNT = 26;
std::string PRINTING_STAGE_STR[PRINTING_STAGE_COUNT] = {
"printing",
"bed_leveling",
@ -42,7 +42,13 @@ 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"
};
@ -97,6 +103,14 @@ 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");
default:
;
}