Skip to content

Commit be2bd87

Browse files
authored
Update xm.rs
1 parent 1e5b6f7 commit be2bd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/xm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub mod conv {
105105
///
106106
/// It should be in [-current_limit, +current_limit] with an absolute max at 1193 (3209.17mA)
107107
/// Works for goal_current for instance
108-
pub fn current_to_dxl_ma(current: f32) -> i16 {
108+
pub fn ma_to_dxl_current(current: f32) -> i16 {
109109
(current / 2.69) as i16
110110
}
111111

0 commit comments

Comments
 (0)