fix: 修复旋转编码器地址与控制问题
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user