mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-28 11:21:30 +00:00
fix: use correct device id for Moonraker connections
This commit is contained in:
@@ -171,7 +171,7 @@ int MoonrakerPrinterAgent::connect_printer(const PrinterConnectionParams& params
|
|||||||
// Launch connection in background thread (capture by value to avoid data races)
|
// Launch connection in background thread (capture by value to avoid data races)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::recursive_mutex> lock(connect_mutex);
|
std::lock_guard<std::recursive_mutex> lock(connect_mutex);
|
||||||
connect_thread = std::thread([this, params, base_url, api_key, gen]() { perform_connection_async(params.dev_id, base_url, api_key, gen); });
|
connect_thread = std::thread([this, dev_id = params.dev_id, base_url, api_key, gen]() { perform_connection_async(dev_id, base_url, api_key, gen); });
|
||||||
}
|
}
|
||||||
|
|
||||||
return BAMBU_NETWORK_SUCCESS;
|
return BAMBU_NETWORK_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user