Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
chore: fmt :]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropix126 committed Mar 8, 2024
1 parent 460c982 commit d34a4f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/pros-devices/src/smart/motor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ impl Motor {
// outputs the most recent recorded posision AND the timestamp it was measured at,
// rather than a position at a requested timestamp.
let ticks = bail_on!(PROS_ERR, unsafe {
pros_sys::motor_get_raw_position(
self.port.index() as i8,
timestamp,
)
pros_sys::motor_get_raw_position(self.port.index() as i8, timestamp)
});

Ok((ticks, Duration::from_millis(unsafe { *timestamp } as u64)))
Expand Down

0 comments on commit d34a4f3

Please sign in to comment.