mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 22:16:19 +08:00
FIX:fixed the display error caused by the incorrect remain
Change-Id: I9c0bb7325d4d9ae043aa3dc868f94102e3aa24ae
This commit is contained in:
parent
1ae4a74687
commit
de0b0508eb
@ -82,6 +82,7 @@ bool AMSinfo::parse_ams_info(Ams *ams)
|
||||
}
|
||||
|
||||
info.material_remain = it->second->remain < 0 ? 100 :it->second->remain;
|
||||
info.material_remain = it->second->remain > 100 ? 100 :info.material_remain;
|
||||
|
||||
} else {
|
||||
info.can_id = it->second->id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user