mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
FIX: modify the cali mode name
Change-Id: Ic234ac3ac776e40fadcf4d3a65c511ceb3946666 (cherry picked from commit 91fee384ddf055a6689160c64fdbdcc5caf91325)
This commit is contained in:
parent
04bfe7e405
commit
e9f3ddb61b
4 changed files with 9 additions and 8 deletions
|
@ -1946,7 +1946,7 @@ int MachineObject::command_start_calibration(bool vibration, bool bed_leveling,
|
|||
}
|
||||
}
|
||||
|
||||
int MachineObject::command_start_pa_calibration(const X1CCalibInfos &pa_data, bool is_manual)
|
||||
int MachineObject::command_start_pa_calibration(const X1CCalibInfos &pa_data, int mode)
|
||||
{
|
||||
pa_calib_results.clear();
|
||||
if ((printer_type == "BL-P001" || printer_type == "BL-P002")) {
|
||||
|
@ -1954,7 +1954,7 @@ int MachineObject::command_start_pa_calibration(const X1CCalibInfos &pa_data, bo
|
|||
j["print"]["command"] = "extrusion_cali";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["print"]["nozzle_diameter"] = to_string_nozzle_diameter(pa_data.calib_datas[0].nozzle_diameter);
|
||||
j["print"]["manual"] = is_manual;
|
||||
j["print"]["mode"] = mode;
|
||||
|
||||
for (int i = 0; i < pa_data.calib_datas.size(); ++i) {
|
||||
j["print"]["filaments"][i]["tray_id"] = pa_data.calib_datas[i].tray_id;
|
||||
|
@ -3914,7 +3914,8 @@ int MachineObject::parse_json(std::string payload)
|
|||
else if ((*it)["n_coef"].is_string())
|
||||
pa_calib_result.n_coef = stof((*it)["n_coef"].get<std::string>().c_str());
|
||||
|
||||
pa_calib_result.confidence = (*it)["confidence"].get<int>();
|
||||
if ((*it).contains("confidence"))
|
||||
pa_calib_result.confidence = (*it)["confidence"].get<int>();
|
||||
|
||||
pa_calib_results.push_back(pa_calib_result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue