summaryrefslogtreecommitdiffstats
path: root/src/devices/mode/oneshot.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:11:15 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:11:15 +0100
commiteb0c438e9dbad47a9cf2c24610233b0224f7e269 (patch)
tree6f897520ce5bc9d5963d760f99173b6ce50fc2ae /src/devices/mode/oneshot.rs
parent0ae97c430f4082e94730a1b220f75db1add65270 (diff)
downloadads1x1x-async-eb0c438e9dbad47a9cf2c24610233b0224f7e269.tar.gz
ads1x1x-async-eb0c438e9dbad47a9cf2c24610233b0224f7e269.tar.xz
ads1x1x-async-eb0c438e9dbad47a9cf2c24610233b0224f7e269.zip
Make function to read if a measurement is in progress public
Diffstat (limited to 'src/devices/mode/oneshot.rs')
-rw-r--r--src/devices/mode/oneshot.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/devices/mode/oneshot.rs b/src/devices/mode/oneshot.rs
index 41a9f26..a03d8d2 100644
--- a/src/devices/mode/oneshot.rs
+++ b/src/devices/mode/oneshot.rs
@@ -23,13 +23,6 @@ where
})
}
- fn is_measurement_in_progress(&mut self) -> Result<bool, Error<E>> {
- let config = Config {
- bits: self.iface.read_register(Register::CONFIG)?
- };
- Ok(!config.is_high(BitFlags::OS))
- }
-
fn trigger_measurement(&mut self, config: &Config) -> Result<(), Error<E>> {
let config = config.with_high(BitFlags::OS);
self.iface.write_register(Register::CONFIG, config.bits)