From aebc0a297985289d87c957fa50e8bd049107222f Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Fri, 9 Oct 2026 18:27:14 +0800 Subject: [PATCH] fix: change ams type when parsing AFC mmu --- src/slic3r/Utils/MoonrakerPrinterAgent.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/Utils/MoonrakerPrinterAgent.cpp b/src/slic3r/Utils/MoonrakerPrinterAgent.cpp index d5f7390454..d515d7329a 100644 --- a/src/slic3r/Utils/MoonrakerPrinterAgent.cpp +++ b/src/slic3r/Utils/MoonrakerPrinterAgent.cpp @@ -477,7 +477,9 @@ void MoonrakerPrinterAgent::build_ams_payload(int ams_count, int max_lane_index, nlohmann::json ams_unit = nlohmann::json::object(); ams_unit["id"] = std::to_string(ams_id); - ams_unit["info"] = "0002"; // treat as AMS_LITE + // Generic unit: type 1 (AMS) maps to AMSModel::GENERIC_AMS, which drives the + // variable-lane rendering. This is not a real Bambu AMS-Lite. + ams_unit["info"] = "0001"; ams_unit["tray"] = tray_array; ams_array.push_back(ams_unit); } @@ -522,8 +524,9 @@ void MoonrakerPrinterAgent::build_ams_payload_grouped(const std::vector