From ac57ac41ab32790a0b75eb819a0d7024f0f20905 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Tue, 6 Jun 2023 16:31:03 +0800 Subject: [PATCH] FIX: c11 tunnel mqtt Change-Id: I550978822998fe9ef5b17ba76374fb5f7688fc7e --- src/slic3r/GUI/DeviceManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index c9028341a..50730e64f 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1385,6 +1385,8 @@ void MachineObject::parse_version_func() is_support_send_to_sdcard = ota_version->second.sw_ver.compare("01.02.00.00") >= 0; is_support_ai_monitoring = ota_version->second.sw_ver.compare("01.02.99.00") >= 0; is_support_remote_tunnel = ota_version->second.sw_ver.compare("01.02.99.00") >= 0; + is_support_tunnel_mqtt = (ota_version->second.sw_ver.compare("01.03.50.01") >= 0 || + (esp32_version != module_vers.end() && esp32_version->second.sw_ver.compare("01.05.15.00") >= 0)); } local_camera_proto = 1; @@ -3925,7 +3927,7 @@ int MachineObject::parse_json(std::string payload) } catch (...) {} - if (m_active_state == Active) { + if (m_active_state == Active && !module_vers.empty() && check_version_valid()) { m_active_state = UpdateToDate; parse_version_func(); if (is_support_tunnel_mqtt && connection_type() != "lan") {