ENH: support ams auto switch filament for P1P
Change-Id: I18df1c962c8289931ba8f8978752c879c13cb648 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
385854ff2a
commit
71ef9e946c
|
@ -15,7 +15,6 @@
|
||||||
"FUNC_VIRTUAL_CAMERA" : false,
|
"FUNC_VIRTUAL_CAMERA" : false,
|
||||||
"FUNC_PRINT_WITHOUT_SD": false,
|
"FUNC_PRINT_WITHOUT_SD": false,
|
||||||
"FUNC_ALTER_RESOLUTION": false,
|
"FUNC_ALTER_RESOLUTION": false,
|
||||||
"FUNC_AUTO_SWITCH_FILAMENT": false,
|
|
||||||
"FUNC_CHAMBER_FAN" : false,
|
"FUNC_CHAMBER_FAN" : false,
|
||||||
"FUNC_EXTRUSION_CALI": true,
|
"FUNC_EXTRUSION_CALI": true,
|
||||||
"FUNC_PRINT_ALL" : false
|
"FUNC_PRINT_ALL" : false
|
||||||
|
|
|
@ -1316,6 +1316,7 @@ bool MachineObject::is_recording()
|
||||||
void MachineObject::parse_version_func()
|
void MachineObject::parse_version_func()
|
||||||
{
|
{
|
||||||
auto ota_version = module_vers.find("ota");
|
auto ota_version = module_vers.find("ota");
|
||||||
|
auto esp32_version = module_vers.find("esp32");
|
||||||
if (printer_type == "BL-P001" ||
|
if (printer_type == "BL-P001" ||
|
||||||
printer_type == "BL-P002") {
|
printer_type == "BL-P002") {
|
||||||
if (ota_version != module_vers.end()) {
|
if (ota_version != module_vers.end()) {
|
||||||
|
@ -1342,8 +1343,13 @@ void MachineObject::parse_version_func()
|
||||||
}
|
}
|
||||||
} else if (printer_type == "C11") {
|
} else if (printer_type == "C11") {
|
||||||
local_use_ssl = true;
|
local_use_ssl = true;
|
||||||
|
if (ota_version != module_vers.end()) {
|
||||||
is_support_send_to_sdcard = ota_version->second.sw_ver.compare("01.02.00.00") >= 0;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int MachineObject::command_get_version(bool with_retry)
|
int MachineObject::command_get_version(bool with_retry)
|
||||||
|
|
Loading…
Reference in New Issue