diff --git a/src/components/AdvancedDebugDialog.vue b/src/components/AdvancedDebugDialog.vue index 9a201a0..58b52b0 100644 --- a/src/components/AdvancedDebugDialog.vue +++ b/src/components/AdvancedDebugDialog.vue @@ -77,6 +77,18 @@ /> + + + + + + {{ $t("language") }} @@ -169,6 +181,7 @@ export default defineComponent({ const function_center_control = ref(false); const function_output_board = ref(false); const function_mirroring_output = ref(false); + const function_custom_ISV = ref(false); const target_language = ref("zh-CN"); return { @@ -176,6 +189,7 @@ export default defineComponent({ loading, function_center_control, function_output_board, + function_custom_ISV, function_mirroring_output, target_language, @@ -201,6 +215,10 @@ export default defineComponent({ ($store.state.device_attribute & Protocol.EDeviceAttribute.MirroringOutput) != 0; + + function_custom_ISV.value = + (response.attribute & Protocol.EDeviceAttribute.CustomISV) != + 0; }); } } catch {} @@ -211,6 +229,8 @@ export default defineComponent({ function_center_control.value = false; function_output_board.value = false; + function_mirroring_output.value = false; + function_custom_ISV.value = false; }, restartDevice() { @@ -299,6 +319,11 @@ export default defineComponent({ if (function_mirroring_output.value) { attribute |= Protocol.EDeviceAttribute.MirroringOutput; } + + if (function_custom_ISV.value) { + attribute |= Protocol.EDeviceAttribute.CustomISV; + } + GlobalData.getInstance() .getCurrentClient() ?.setDeviceAttribute(attribute); diff --git a/src/components/RegisterDialog.vue b/src/components/RegisterDialog.vue index 8d1f91f..db7a5da 100644 --- a/src/components/RegisterDialog.vue +++ b/src/components/RegisterDialog.vue @@ -291,6 +291,22 @@ + + + +
+ +
+
+
+ {{ $t("language") }} @@ -399,6 +415,7 @@ export default defineComponent({ const function_center_control = ref(false); const function_output_board = ref(false); const function_mirroring_output = ref(false); + const function_custom_ISV = ref(false); const trial_days = ref(0); const last_days = ref(0); @@ -420,6 +437,7 @@ export default defineComponent({ function_center_control.value = false; function_output_board.value = false; function_mirroring_output.value = false; + function_custom_ISV.value = false; }; const showDialog = async () => { @@ -456,6 +474,10 @@ export default defineComponent({ ($store.state.device_attribute & Protocol.EDeviceAttribute.MirroringOutput) != 0; + + function_custom_ISV.value = + ($store.state.device_attribute & Protocol.EDeviceAttribute.CustomISV) != + 0; }; return { @@ -476,6 +498,7 @@ export default defineComponent({ select_file_dialog, server_address, function_output_board, + function_custom_ISV, function_center_control, function_mirroring_output, target_language, @@ -601,6 +624,10 @@ export default defineComponent({ attribute |= Protocol.EDeviceAttribute.MirroringOutput; } + if (function_custom_ISV.value) { + attribute |= Protocol.EDeviceAttribute.CustomISV; + } + GlobalData.getInstance() .getCurrentClient() ?.setDeviceAttribute(attribute); diff --git a/src/entities/WSProtocol.ts b/src/entities/WSProtocol.ts index a57b56a..81ae42e 100644 --- a/src/entities/WSProtocol.ts +++ b/src/entities/WSProtocol.ts @@ -2549,7 +2549,7 @@ export namespace Protocol { OutputBoard = 0x0002, CenterControl = 0x0004, MirroringOutput = 0x0008, - Reserve3 = 0x0010, + CustomISV = 0x0010, Reserve4 = 0x0020, Reserve5 = 0x0040, Reserve6 = 0x0080, diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts index 94b4267..6978ff7 100644 --- a/src/i18n/zh-CN/index.ts +++ b/src/i18n/zh-CN/index.ts @@ -595,4 +595,5 @@ export default { "host name": "主机名称", "Host names can only be numbers and letters and _-": "主机名只能由数字、字母和_-组成", + "Custom ISV": "优霸定制", }; diff --git a/src/pages/TopToolBar.vue b/src/pages/TopToolBar.vue index 31d9da2..f4b986e 100644 --- a/src/pages/TopToolBar.vue +++ b/src/pages/TopToolBar.vue @@ -4,6 +4,7 @@