mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: check ams support only on X1 printer
Change-Id: I830ad6c5f4f7c16edda4d880737548fda0697667
This commit is contained in:
parent
e56c266edc
commit
4b0d63ba8e
1 changed files with 25 additions and 19 deletions
|
@ -501,10 +501,11 @@ bool MachineObject::is_U0_firmware()
|
||||||
|
|
||||||
bool MachineObject::is_support_ams_mapping()
|
bool MachineObject::is_support_ams_mapping()
|
||||||
{
|
{
|
||||||
|
if (printer_type == "BL-P001" || printer_type == "BL-P002") {
|
||||||
AppConfig* config = Slic3r::GUI::wxGetApp().app_config;
|
AppConfig* config = Slic3r::GUI::wxGetApp().app_config;
|
||||||
if (config) {
|
if (config) {
|
||||||
if (config->get("check_ams_version") == "0")
|
if (config->get("check_ams_version") == "0")
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
bool need_upgrade = false;
|
bool need_upgrade = false;
|
||||||
if (has_ams()) {
|
if (has_ams()) {
|
||||||
|
@ -527,10 +528,15 @@ bool MachineObject::is_support_ams_mapping()
|
||||||
}
|
}
|
||||||
return !need_upgrade;
|
return !need_upgrade;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool MachineObject::is_support_ams_mapping_version(std::string module, std::string version)
|
bool MachineObject::is_support_ams_mapping_version(std::string module, std::string version)
|
||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
|
|
||||||
if (module == "ota") {
|
if (module == "ota") {
|
||||||
if (version.compare("00.01.04.03") < 0)
|
if (version.compare("00.01.04.03") < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue