remove bed temp 0 error for non-bambu printers

Signed-off-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
SoftFever 2023-01-22 23:04:25 +08:00
parent b7bdb65fd3
commit 3970b84d97

View file

@ -1124,6 +1124,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
const ConfigOptionDef* bed_type_def = print_config_def.get("curr_bed_type");
assert(bed_type_def != nullptr);
if (is_BBL_printer()) {
const t_config_enum_values* bed_type_keys_map = bed_type_def->enum_keys_map;
for (unsigned int extruder_id : extruders) {
const ConfigOptionInts* bed_temp_opt = m_config.option<ConfigOptionInts>(get_bed_temp_key(m_config.curr_bed_type));
@ -1144,12 +1145,13 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
except.type = STRING_EXCEPT_FILAMENT_NOT_MATCH_BED_TYPE;
except.params.push_back(std::to_string(this->get_plate_index() + 1));
except.params.push_back(L(bed_type_name));
except.params.push_back(std::to_string(extruder_id+1));
except.params.push_back(std::to_string(extruder_id + 1));
except.object = nullptr;
return except;
}
}
}
}
return {};
}