ENH: do not change ip when connection name is different

JIRA: STUDIO-4072

Change-Id: I6e72f894fa5eca91d5bbbfaca3e897be95c305e0
Signed-off-by: Stone Li <stone.li@bambulab.com>
(cherry picked from commit 15075195334a2e42097f3542402e1f889f480d3b)
This commit is contained in:
Stone Li 2023-08-25 09:10:14 +08:00 committed by Lane.Wei
parent be53cf4c7a
commit 061a2cdb7e
2 changed files with 9 additions and 1 deletions

View file

@ -439,6 +439,7 @@ public:
float nozzle_diameter { 0.0f };
std::string dev_connection_type; /* lan | cloud */
std::string connection_type() { return dev_connection_type; }
std::string dev_connection_name; /* lan | eth */
void set_dev_ip(std::string ip) {dev_ip = ip;};
bool has_access_right() { return !get_access_code().empty(); }
std::string get_ftp_folder();