Poll example

This commit is contained in:
Zachary Sunforge
2023-06-25 17:33:03 -07:00
parent 359b75cba8
commit abfa21ff01
3 changed files with 28 additions and 3 deletions

View File

@ -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(