From cbb83d3dcd10a9738a7bcf05e2e55ccc119018bd Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Sun, 17 Aug 2025 17:09:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=8B=E8=BD=AC?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=99=A8=E5=9C=B0=E5=9D=80=E4=B8=8E=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/Peripherals/RotaryEncoderClient.cs | 2 +- src/components/equipments/EC11RotaryEncoder.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/Peripherals/RotaryEncoderClient.cs b/server/src/Peripherals/RotaryEncoderClient.cs index 078e744..02f4798 100644 --- a/server/src/Peripherals/RotaryEncoderClient.cs +++ b/server/src/Peripherals/RotaryEncoderClient.cs @@ -6,7 +6,7 @@ namespace Peripherals.RotaryEncoderClient; class RotaryEncoderCtrlAddr { - public const UInt32 BASE = 0xB0_00_00_20; + public const UInt32 BASE = 0xB0_00_00_30; public const UInt32 ENABLE = BASE; } diff --git a/src/components/equipments/EC11RotaryEncoder.vue b/src/components/equipments/EC11RotaryEncoder.vue index 19f0a5e..29f5a69 100644 --- a/src/components/equipments/EC11RotaryEncoder.vue +++ b/src/components/equipments/EC11RotaryEncoder.vue @@ -258,6 +258,8 @@ watchEffect(() => { watch( () => rotationStep.value, (newStep, oldStep) => { + if (!props.enableDigitalTwin) return; + if (newStep > oldStep) { rotataryEncoderStore.rotateOnce( props.encoderNumber,