diff --git a/src/driver_controls.rs b/src/driver_controls.rs index 8415494..7d50538 100644 --- a/src/driver_controls.rs +++ b/src/driver_controls.rs @@ -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],