mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00: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:
@@ -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(...) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user