ENH: flow_ratio cali support multi_extuder

jira: none
Change-Id: I03399040a772043d3d20116b0588fd04e0725be1
(cherry picked from commit 38b3c32b6ae2ca63e815623144cb4c2a9c194977)
This commit is contained in:
zhimin.zeng
2024-09-04 15:20:35 +08:00
committed by Noisyfox
parent d6e219c52f
commit e7d2c51326
8 changed files with 198 additions and 38 deletions

View File

@@ -1145,8 +1145,7 @@ void MachineObject::reset_mapping_result(std::vector<FilamentInfo>& result)
bool MachineObject::is_main_extruder_on_left() const
{
// only means the extruder is on the left hand when extruder id is 0
return false;
return printer_type.find("O1D") == std::string::npos; // not O1D
}
bool MachineObject::is_multi_extruders() const
@@ -1154,6 +1153,12 @@ bool MachineObject::is_multi_extruders() const
return m_extder_data.total_extder_count > 1;
}
bool MachineObject::need_SD_card() const
{
// todo: check whether need SD card
return !is_multi_extruders();
}
bool MachineObject::is_bbl_filament(std::string tag_uid)
{
if (tag_uid.empty())