FIX:Fixed loading filament error of the last AMS

jira:[STUDIO-11353]

Change-Id: I09f111a7c0b0c7234936d46e905109215f5e4ac4
(cherry picked from commit 41c0db10298678030b2c6d2659dd7bc8bbdf8166)
This commit is contained in:
tao wang 2025-04-24 14:37:46 +08:00 committed by Noisyfox
parent 15d140d582
commit 37a90cbf77

View file

@ -2125,7 +2125,7 @@ int MachineObject::command_ams_change_filament(bool load, std::string ams_id, st
json j;
try {
auto tray_id = 0;
if (ams_id < "16") {
if (atoi(ams_id.c_str()) < 16) {
tray_id = atoi(ams_id.c_str()) * 4 + atoi(slot_id.c_str());
}
// TODO: Orca hack