Skip to content

Commit 9418c5e

Browse files
author
Steve Nguyen
committed
Revert "fix mA conversion test"
This reverts commit ef872ea.
1 parent ef872ea commit 9418c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/xl330.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub mod conv {
114114
/// Dynamixel current to mA
115115
///
116116
/// Works for present_current instance
117-
pub fn dxl_current_to_ma(current: u16) -> f32 {
117+
pub fn dxl_current_to_ma(current: i16) -> f32 {
118118
current as f32 * 1.0
119119
}
120120
/// Current (mA) to dynamixel current

0 commit comments

Comments
 (0)