ENH: check ams support only on X1 printer

Change-Id: I830ad6c5f4f7c16edda4d880737548fda0697667
This commit is contained in:
Stone Li 2022-11-16 12:29:19 +08:00 committed by Lane.Wei
parent e56c266edc
commit 4b0d63ba8e

View file

@ -501,10 +501,11 @@ bool MachineObject::is_U0_firmware()
bool MachineObject::is_support_ams_mapping()
{
if (printer_type == "BL-P001" || printer_type == "BL-P002") {
AppConfig* config = Slic3r::GUI::wxGetApp().app_config;
if (config) {
if (config->get("check_ams_version") == "0")
return false;
return true;
}
bool need_upgrade = false;
if (has_ams()) {
@ -527,10 +528,15 @@ bool MachineObject::is_support_ams_mapping()
}
return !need_upgrade;
}
else {
return true;
}
}
bool MachineObject::is_support_ams_mapping_version(std::string module, std::string version)
{
bool result = true;
if (module == "ota") {
if (version.compare("00.01.04.03") < 0)
return false;