Browse Source

Update ctru-rs/examples/movement.rs

Co-authored-by: Ian Chamberlain <ian-h-chamberlain@users.noreply.github.com>
pull/137/head
Meziu 1 year ago committed by GitHub
parent
commit
ccc9dbf571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ctru-rs/examples/movement.rs

2
ctru-rs/examples/movement.rs

@ -36,7 +36,7 @@ fn main() { @@ -36,7 +36,7 @@ fn main() {
// Be careful: reading without activating the sensors (as done before this loop) will result in a panic.
println!(
"\x1b[3;0HAcceleration: {:?} ",
Into::<(i16, i16, i16)>::into(
<(i16, i16, i16)>::from(
hid.accelerometer_vector()
.expect("could not retrieve acceleration vector")
)

Loading…
Cancel
Save