fix: 修复旋转编码器地址与控制问题
This commit is contained in:
parent
4a55143b8e
commit
cbb83d3dcd
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -258,6 +258,8 @@ watchEffect(() => {
|
|||
watch(
|
||||
() => rotationStep.value,
|
||||
(newStep, oldStep) => {
|
||||
if (!props.enableDigitalTwin) return;
|
||||
|
||||
if (newStep > oldStep) {
|
||||
rotataryEncoderStore.rotateOnce(
|
||||
props.encoderNumber,
|
||||
|
|
Loading…
Reference in New Issue