Poll example
This commit is contained in:
@ -64,7 +64,8 @@ where
|
||||
async fn poll(&self) -> Result<Self::Value, CriticalError> {
|
||||
let mut ads1256_guard = self.ads1256.lock().await;
|
||||
let ads1256 = ads1256_guard.deref_mut();
|
||||
ads1256.data_ready.wait_for_low().await;
|
||||
//TODO: ADS1256 documentation seems to say we should be waiting for drdy low after putting
|
||||
// issuing standby command but it never goes low.
|
||||
|
||||
let result = ads1256
|
||||
.autocal_convert_m(
|
||||
|
Reference in New Issue
Block a user