FIX: is_support_remote_tunnel P1P >= 01.03.00.00
Change-Id: I97e7a38f7bd3d42f61fb4c56b3757b36805a28bf
This commit is contained in:
parent
f40851ff31
commit
b5663b25c9
|
@ -10,16 +10,14 @@
|
|||
"FUNC_FLOW_CALIBRATION": false,
|
||||
"FUNC_MONITORING": false,
|
||||
"FUNC_MEDIA_FILE": false,
|
||||
"FUNC_REMOTE_TUNNEL": false,
|
||||
"FUNC_LOCAL_TUNNEL": true,
|
||||
"FUNC_VIRTUAL_CAMERA" : false,
|
||||
"FUNC_VIRTUAL_CAMERA": false,
|
||||
"FUNC_PRINT_WITHOUT_SD": false,
|
||||
"FUNC_ALTER_RESOLUTION": false,
|
||||
"FUNC_CHAMBER_FAN" : false,
|
||||
"FUNC_EXTRUSION_CALI": true,
|
||||
"FUNC_PRINT_ALL" : false
|
||||
"FUNC_CHAMBER_FAN": false,
|
||||
"FUNC_PRINT_ALL": false,
|
||||
"FUNC_EXTRUSION_CALI": true
|
||||
},
|
||||
"camera_resolution":["720p"],
|
||||
"camera_resolution": [ "720p" ],
|
||||
"bed_temperature_limit": 100,
|
||||
"model_id": "C11",
|
||||
"printer_type": "C11",
|
||||
|
|
|
@ -1394,6 +1394,7 @@ void MachineObject::parse_version_func()
|
|||
else {
|
||||
local_use_ssl = ota_version->second.sw_ver.compare("01.03.01.04") >= 0;
|
||||
}
|
||||
is_support_remote_tunnel = true;
|
||||
}
|
||||
} else if (printer_type == "C11") {
|
||||
if (firmware_type == PrinterFirmwareType::FIRMWARE_TYPE_ENGINEER)
|
||||
|
@ -1404,6 +1405,7 @@ void MachineObject::parse_version_func()
|
|||
is_cloud_print_only = 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_remote_tunnel = ota_version->second.sw_ver.compare("01.02.99.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;
|
||||
|
@ -2256,7 +2258,9 @@ bool MachineObject::is_function_supported(PrinterFunction func)
|
|||
func_name = "FUNC_MEDIA_FILE";
|
||||
break;
|
||||
case FUNC_REMOTE_TUNNEL:
|
||||
func_name = "FUNC_REMOTE_TUNNEL";
|
||||
parse_version_func();
|
||||
if (!is_support_remote_tunnel)
|
||||
return false;
|
||||
break;
|
||||
case FUNC_LOCAL_TUNNEL:
|
||||
func_name = "FUNC_LOCAL_TUNNEL";
|
||||
|
|
|
@ -632,6 +632,7 @@ public:
|
|||
std::string camera_resolution = "";
|
||||
bool xcam_first_layer_inspector { false };
|
||||
int xcam_first_layer_hold_count = 0;
|
||||
bool is_support_remote_tunnel{false};
|
||||
|
||||
bool xcam_ai_monitoring{ false };
|
||||
int xcam_ai_monitoring_hold_count = 0;
|
||||
|
|
Loading…
Reference in New Issue