Skip to content

Commit

Permalink
Do calibration on init for nunchuk
Browse files Browse the repository at this point in the history
  • Loading branch information
9names committed Apr 14, 2024
1 parent 3f598ae commit 05a937e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wii-ext/src/nunchuk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ where
// These registers must be written to disable encryption.; the documentation is a bit
// lacking but it appears this is some kind of handshake to
// perform unencrypted data tranfers
self.interface.init()
self.interface.init()?;
self.update_calibration()
}

pub fn identify_controller(&mut self) -> Result<Option<ControllerType>, Error<ERR>> {
Expand Down

0 comments on commit 05a937e

Please sign in to comment.