mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-28 16:11:54 -05:00
fix: bind printer agent printers using the entered address (#17857)
- Moonraker's `bind_detect` now builds the device ID from the entered address instead of the connected printer's cached identity, so binding a second printer by IP no longer reselects and reconnects the first one. - The C11 model fallback for a device bound without a model now applies only to Bambu printers.
This commit is contained in:
1 parent
01adacf334
commit
188782518d
4 files changed
+172
-9
No files matched your search
@@ -502,10 +502,12 @@ namespace Slic3r
|
||||
obj->printer_agent_id = get_current_printer_agent_id();
|
||||
localMachineList.insert(std::make_pair(machine.dev_id, obj));
|
||||
}
|
||||
if (machine.printer_type.empty())
|
||||
obj->printer_type = _parse_printer_type("C11");
|
||||
else
|
||||
// Only Bambu printers use the C11 fallback. Other agents may not report a model,
|
||||
// so leave their existing model unchanged when none is provided.
|
||||
if (!machine.printer_type.empty())
|
||||
obj->printer_type = _parse_printer_type(machine.printer_type);
|
||||
else if (obj->printer_agent_id == BBL_PRINTER_AGENT_ID)
|
||||
obj->printer_type = _parse_printer_type("C11");
|
||||
obj->dev_connection_type = connection_type == "farm" ? "lan":connection_type;
|
||||
obj->bind_state = connection_type == "farm" ? "free":bind_state;
|
||||
obj->bind_sec_link = "secure";
|
||||
|
||||
Reference in new issue
Block a user