ENH:calibration support p1p plus
jira:[plus] Change-Id: Ia290d3a8a8b9adaac7a6ee26d9a8b5ea0c1b3aee
This commit is contained in:
parent
4579623c18
commit
87ff0b8da8
|
@ -1818,7 +1818,10 @@ Preset* CalibrationPresetPage::get_printer_preset(MachineObject* obj, float nozz
|
|||
if (printer_nozzle_opt)
|
||||
printer_nozzle_vals = dynamic_cast<ConfigOptionFloats*>(printer_nozzle_opt);
|
||||
std::string model_id = printer_it->get_current_printer_type(preset_bundle);
|
||||
if (model_id.compare(obj->printer_type) == 0
|
||||
|
||||
std::string printer_type = obj->printer_type;
|
||||
if (obj->is_support_p1s_plus) { printer_type = "C12"; }
|
||||
if (model_id.compare(printer_type) == 0
|
||||
&& printer_nozzle_vals
|
||||
&& abs(printer_nozzle_vals->get_at(0) - nozzle_value) < 1e-3) {
|
||||
printer_preset = &(*printer_it);
|
||||
|
|
Loading…
Reference in New Issue