From 9418c5eb1281ca4f5879e691624fd47f404a22ba Mon Sep 17 00:00:00 2001 From: Steve Nguyen Date: Wed, 6 Nov 2024 20:22:26 +0100 Subject: [PATCH] Revert "fix mA conversion test" This reverts commit ef872eaceef5c311f10e6003ed0ea45eca2bdf5a. --- src/device/xl330.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/xl330.rs b/src/device/xl330.rs index 201e2cd..b38c52c 100644 --- a/src/device/xl330.rs +++ b/src/device/xl330.rs @@ -114,7 +114,7 @@ pub mod conv { /// Dynamixel current to mA /// /// Works for present_current instance - pub fn dxl_current_to_ma(current: u16) -> f32 { + pub fn dxl_current_to_ma(current: i16) -> f32 { current as f32 * 1.0 } /// Current (mA) to dynamixel current