Add handling for unknown filament IDs and improve filament type resolution

This commit is contained in:
SoftFever
2026-01-31 19:32:35 +08:00
parent 5935832143
commit d782141ca5
4 changed files with 55 additions and 4 deletions

View File

@@ -775,7 +775,7 @@ std::string MoonrakerPrinterAgent::map_filament_type_to_generic_id(const std::st
if (upper == "SBS") return "OFLSBS99";
// Unknown material
return "__unknown__";
return UNKNOWN_FILAMENT_ID;
}
int MoonrakerPrinterAgent::handle_request(const std::string& dev_id, const std::string& json_str)