mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
NEW: add calibration options
add calibration option of xcam_cali, bed_leveling and vibration. Change-Id: I63dc47e08ac89554f0e45db35eecd72be484647d Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
73242280ef
commit
3a9397307d
4 changed files with 94 additions and 13 deletions
|
@ -1491,6 +1491,7 @@ int MachineObject::command_set_printing_option(bool auto_recovery)
|
|||
j["print"]["command"] = "print_option";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["print"]["option"] = print_option;
|
||||
j["print"]["auto_recovery"] = auto_recovery;
|
||||
|
||||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
@ -2750,6 +2751,9 @@ int MachineObject::parse_json(std::string payload)
|
|||
_parse_print_option_ack(option);
|
||||
}
|
||||
}
|
||||
if (jj.contains("auto_recovery")) {
|
||||
xcam_auto_recovery_step_loss = jj["auto_recovery"].get<bool>();
|
||||
}
|
||||
}
|
||||
catch(...) {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue