Skip to content

Commit

Permalink
use correct conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-raju committed Sep 24, 2023
1 parent 9823a80 commit 71b66e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver_controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl DriverControls {
let id = StandardId::new(self.base_id + 0x01).unwrap();

let vel = velocity_rpm.to_le_bytes();
let cur = current_percent.to_be_bytes();
let cur = current_percent.to_le_bytes();

let data = [
vel[0], vel[1], vel[2], vel[3], cur[0], cur[1], cur[2], cur[3],
Expand Down

0 comments on commit 71b66e0

Please sign in to comment.