diff --git a/wii-ext/src/async_impl/nunchuk.rs b/wii-ext/src/async_impl/nunchuk.rs index 579f198..6c10a50 100644 --- a/wii-ext/src/async_impl/nunchuk.rs +++ b/wii-ext/src/async_impl/nunchuk.rs @@ -63,20 +63,15 @@ where } /// poll the controller for the latest data - async fn read_classic_report(&mut self) -> Result { + async fn read_report(&mut self) -> Result { let buf = self.interface.read_ext_report().await?; NunchukReading::from_data(&buf).ok_or(AsyncImplError::InvalidInputData) } - /// Simple blocking read helper that will start a sample, wait 10ms, then read the value - async fn read_report(&mut self) -> Result { - self.read_classic_report().await - } - /// Do a read, and report axis values relative to calibration pub async fn read(&mut self) -> Result { Ok(NunchukReadingCalibrated::new( - self.read_classic_report().await?, + self.read_report().await?, &self.calibration, )) }