From fe689ca1978dc2ebf39c487642d2ecb49cd0490d Mon Sep 17 00:00:00 2001 From: Stone Li Date: Wed, 18 Jan 2023 15:05:08 +0800 Subject: [PATCH] FIX: fix crash in ota version Change-Id: Ieec2976c48033bea18c8b00a8a70c89c9a7e1880 --- 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 99fdb2355..79eefdde9 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1348,7 +1348,9 @@ void MachineObject::parse_version_func() } } else if (printer_type == "C11") { local_use_ssl = true; - is_support_send_to_sdcard = ota_version->second.sw_ver.compare("01.02.00.00") >= 0; + if (ota_version != module_vers.end()) { + is_support_send_to_sdcard = ota_version->second.sw_ver.compare("01.02.00.00") >= 0; + } } }