Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Nguyen committed Feb 19, 2024
1 parent a99b570 commit ca13b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/orbita3d_poulpe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ reg_read_only!(index_sensor, 99, MotorValue::<u8>);
reg_read_only!(full_state, 100, MotorPositionSpeedLoad);

impl MotorPositionSpeedLoad {
pub fn from_le_bytes(bytes: [u8; 36]) -> Self {
pub fn from_le_bytes(bytes: [u8; 12]) -> Self {
MotorPositionSpeedLoad {
position: MotorValue::<f32>::from_le_bytes(bytes[0..12].try_into().unwrap()),
// speed: MotorValue::<f32>::from_le_bytes(bytes[12..24].try_into().unwrap()),
Expand Down

0 comments on commit ca13b53

Please sign in to comment.