FIX: check if the filament is unknown

jira: [STUDIO-12085]
Change-Id: Ibf40d7a5106a40385aff5c769e5b7e5cdb866de0
(cherry picked from commit 012b6f2395d66b7b1bdafa3e851ca4b2f874eb23)
This commit is contained in:
xin.zhang authored and Noisyfox committed 2025-09-23 09:21:03 +08:00
1 parent 0317e0dd88
commit 2bbd4f89f8
4 files changed
+61

No files matched your search

+15
View File
@@ -178,6 +178,21 @@ void AMSinfo::parse_ext_info(MachineObject* obj, AmsTray tray) {
this->cans.push_back(info);
}
Caninfo AMSinfo::get_caninfo(const std::string& can_id, bool& found) const
{
found = false;
for (const auto& can_info : cans)
{
if (can_info.can_id == can_id)
{
found = true;
return can_info;
}
}
return Caninfo();
};
/*************************************************
Description:AMSExtText
**************************************************/