ENH: set 4 status of monitor extruder icon

Change-Id: I2739c7079268409975a9bd6ed1efb6cf47868438
This commit is contained in:
tao.jin 2022-10-27 13:11:52 +08:00 committed by Lane.Wei
parent cd1210b0ca
commit 7b3621bb0c
12 changed files with 40 additions and 69 deletions

View file

@ -1443,6 +1443,7 @@ int MachineObject::command_axis_control(std::string axis, double unit, double va
}
else if (axis.compare("E") == 0) {
sprintf(cmd, "M83 \nG0 %s%0.1f F%d\n", axis.c_str(), value * unit, speed);
extruder_axis_status = (value >= 0.0f)? LOAD : UNLOAD;
}
else {
return -1;
@ -1634,6 +1635,7 @@ void MachineObject::reset()
print_status = "";
last_mc_print_stage = -1;
m_new_ver_list_exist = false;
extruder_axis_status = LOAD;
subtask_ = nullptr;