From d8299c388eca6dcb16d2fb11f70abe43fc952346 Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Thu, 17 Sep 2026 18:44:54 +0800 Subject: [PATCH] fix: regression bug, connecting to bambu needs bblp username --- src/slic3r/GUI/DeviceCore/DevManager.cpp | 2 +- src/slic3r/Utils/BBLPrinterAgent.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/DeviceCore/DevManager.cpp b/src/slic3r/GUI/DeviceCore/DevManager.cpp index c697c39a46..d4db0cdfeb 100644 --- a/src/slic3r/GUI/DeviceCore/DevManager.cpp +++ b/src/slic3r/GUI/DeviceCore/DevManager.cpp @@ -583,7 +583,7 @@ namespace Slic3r << " printer_agent_id=" << it->second->printer_agent_id << " connection_type=" << it->second->connection_type() << " dev_connection_type=" << it->second->dev_connection_type; - } else { + } else if (!dev_id.empty()) { BOOST_LOG_TRIVIAL(warning) << "Orca diagnostic: target machine was not found in the current agent's machine list"; return false; } diff --git a/src/slic3r/Utils/BBLPrinterAgent.hpp b/src/slic3r/Utils/BBLPrinterAgent.hpp index 83e21bb6d8..5ac6ef0bd0 100644 --- a/src/slic3r/Utils/BBLPrinterAgent.hpp +++ b/src/slic3r/Utils/BBLPrinterAgent.hpp @@ -28,6 +28,7 @@ public: // Communication int send_message(std::string dev_id, std::string json_str, int qos, int flag) override; + std::string default_lan_username() const override { return "bblp"; } int connect_printer(std::string dev_id, std::string dev_ip, std::string username, std::string password, bool use_ssl) override; int disconnect_printer() override; int send_message_to_printer(std::string dev_id, std::string json_str, int qos, int flag) override;