From 424861fea4aca60d50e495bfa374cebc168f29ad Mon Sep 17 00:00:00 2001 From: Steve Nguyen Date: Tue, 4 Jun 2024 17:01:39 +0200 Subject: [PATCH] type mismatch --- src/device/xm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/xm.rs b/src/device/xm.rs index 97ac58b..d37fc53 100644 --- a/src/device/xm.rs +++ b/src/device/xm.rs @@ -45,10 +45,10 @@ reg_read_write!(bus_watchdog, 98, u8); reg_read_write!(goal_pwm, 100, u16); reg_read_write!(goal_current, 102, u16); -reg_read_write!(goal_velocity, 104, u32); +reg_read_write!(goal_velocity, 104, i32); reg_read_write!(profile_acceleration, 108, u32); reg_read_write!(profile_velocity, 112, u32); -reg_read_write!(goal_position, 116, u32); +reg_read_write!(goal_position, 116, i32); reg_read_only!(realtime_tick, 120, u16); reg_read_only!(moving, 122, u8); reg_read_only!(moving_status, 123, u8);