FIX: [STUDIO-1908] add printer cert and version compatible

Change-Id: I6aef8c1169952a0b541516ab3a0d7de2d3e213b3
(cherry picked from commit b0bbb571c7c54e81cd52262d334eb1463c3550e7)
This commit is contained in:
chunmao.guo 2023-01-10 14:55:09 +08:00 committed by Lane.Wei
parent 3e8671bcdf
commit 7fe0ee091f
3 changed files with 26 additions and 7 deletions

View file

@ -1333,12 +1333,11 @@ void MachineObject::parse_version_func()
is_support_ai_monitoring = true;
is_support_ams_humidity = true;
}
if (ota_version->second.sw_ver.compare("01.03.00.00") <= 0) {
local_use_ssl = false;
} else {
local_use_ssl = true;
}
local_use_ssl = ota_version->second.sw_ver.compare("01.03.01.02") >= 0;
}
} 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;
}
}