summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:24:36 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:24:36 +0100
commit608c7218e7dd39abacc5c91b2f604f986a3d5179 (patch)
tree3bcc15a05c53bf8da1e2bd8ce9cbac63d964bbd6 /src
parent73f17b5c30ee588aff30fe290b750721f311b198 (diff)
downloadads1x1x-async-608c7218e7dd39abacc5c91b2f604f986a3d5179.tar.gz
ads1x1x-async-608c7218e7dd39abacc5c91b2f604f986a3d5179.tar.xz
ads1x1x-async-608c7218e7dd39abacc5c91b2f604f986a3d5179.zip
Fix logic
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ab42105..b665109 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -147,7 +147,7 @@
//! let adc = Ads1x1x::new_ads1013(dev, address);
//! let mut adc = adc.into_continuous().unwrap();
//! adc.start().unwrap();
-//! while(!adc.is_measurement_in_progress().unwrap()) {
+//! while(adc.is_measurement_in_progress().unwrap()) {
//! // some delay...
//! }
//! let measurement = adc.read().unwrap();