From d753f786d77494b678a34b8e1b4a75d738b0b52a Mon Sep 17 00:00:00 2001 From: trns1997 Date: Sat, 11 Apr 2026 13:06:48 +0200 Subject: [PATCH] Fix SYNC_MANAGER_CONTROL bitmasks for operation mode and direction --- lib/include/kickcat/protocol.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/kickcat/protocol.h b/lib/include/kickcat/protocol.h index c0410ed8..ae20c477 100644 --- a/lib/include/kickcat/protocol.h +++ b/lib/include/kickcat/protocol.h @@ -410,8 +410,8 @@ namespace kickcat constexpr uint8_t SM_CONTROL_WATCHDOG_MASK = 0x40; constexpr uint8_t SM_CONTROL_WATCHDOG_DISABLED = 0x00; constexpr uint8_t SM_CONTROL_WATCHDOG_ENABLED = 0x40; - constexpr uint8_t SYNC_MANAGER_CONTROL_OPERATION_MODE_MASK = (1 << 0); - constexpr uint8_t SYNC_MANAGER_CONTROL_DIRECTION_MASK = (1 << 1); + constexpr uint8_t SYNC_MANAGER_CONTROL_OPERATION_MODE_MASK = 0x03; // bits [1:0] + constexpr uint8_t SYNC_MANAGER_CONTROL_DIRECTION_MASK = 0x0C; // bits [3:2] constexpr uint8_t SM_ACTIVATE_ENABLE = (1 << 0); constexpr uint8_t SM_ACTIVATE_REPEAT_REQ = (1 << 1);