mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
ENH: set 4 status of monitor extruder icon
Change-Id: I2739c7079268409975a9bd6ed1efb6cf47868438
This commit is contained in:
parent
cd1210b0ca
commit
7b3621bb0c
12 changed files with 40 additions and 69 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue