From 41c0db10298678030b2c6d2659dd7bc8bbdf8166 Mon Sep 17 00:00:00 2001 From: tao wang Date: Thu, 24 Apr 2025 14:37:46 +0800 Subject: [PATCH] FIX:Fixed loading filament error of the last AMS jira:[STUDIO-11353] Change-Id: I09f111a7c0b0c7234936d46e905109215f5e4ac4 --- src/slic3r/GUI/DeviceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 4d88464f1..78c907bc9 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -2201,7 +2201,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()); }