FIX: Support ABS recognized as ABS

jira: 7685,8151,8323

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I0a4cce12663ee8f62309f0828521364874a7638d
This commit is contained in:
xun.zhang 2024-10-14 11:23:28 +08:00 committed by Lane.Wei
parent 41a35558ae
commit e835122054
2 changed files with 10 additions and 1 deletions

View File

@ -5190,7 +5190,12 @@ std::string DynamicPrintConfig::get_filament_type(std::string &displayed_filamen
} else if (filament_type->get_at(id) == "PA") {
displayed_filament_type = "Sup.PA";
return "PA-S";
} else {
}
else if (filament_type->get_at(id) == "ABS") {
displayed_filament_type = "Sup.ABS";
return "ABS-S";
}
else {
displayed_filament_type = filament_type->get_at(id);
return filament_type->get_at(id);
}

View File

@ -274,6 +274,8 @@ std::string AmsTray::get_display_filament_type()
return "Sup.PLA";
else if (type == "PA-S")
return "Sup.PA";
else if (type == "ABS-S")
return "Sup.ABS";
else
return type;
return type;
@ -285,6 +287,8 @@ std::string AmsTray::get_filament_type()
return "PLA-S";
} else if (type == "Sup.PA") {
return "PA-S";
} else if (type == "Sup.ABS") {
return "ABS-S";
} else if (type == "Support W") {
return "PLA-S";
} else if (type == "Support G") {