diff --git a/resources/config.json b/resources/config.json index b9508726e..20489ed32 100644 --- a/resources/config.json +++ b/resources/config.json @@ -15,7 +15,6 @@ "FUNC_VIRTUAL_CAMERA" : false, "FUNC_PRINT_WITHOUT_SD": false, "FUNC_ALTER_RESOLUTION": false, - "FUNC_AUTO_SWITCH_FILAMENT": false, "FUNC_CHAMBER_FAN" : false, "FUNC_EXTRUSION_CALI": true, "FUNC_PRINT_ALL" : false diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index bf84f5076..8dde5e932 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1316,6 +1316,7 @@ bool MachineObject::is_recording() void MachineObject::parse_version_func() { auto ota_version = module_vers.find("ota"); + auto esp32_version = module_vers.find("esp32"); if (printer_type == "BL-P001" || printer_type == "BL-P002") { if (ota_version != module_vers.end()) { @@ -1342,7 +1343,12 @@ 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; + } + if (esp32_version != module_vers.end()) { + ams_support_auto_switch_filament_flag = esp32_version->second.sw_ver.compare("00.03.11.50") >= 0; + } } }