FIX:fixed the display error caused by the incorrect remain

Change-Id: I9c0bb7325d4d9ae043aa3dc868f94102e3aa24ae
This commit is contained in:
tao wang authored and Lane.Wei committed 2022-12-15 04:38:15 -05:00
1 parent 1ae4a74687
commit de0b0508eb
1 file changed
+1
+1
View File
@@ -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;