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
2025-05-12 15:05:46 +08:00
committed by Noisyfox
parent 0317e0dd88
commit 2bbd4f89f8
4 changed files with 61 additions and 0 deletions

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
**************************************************/