From 608c7218e7dd39abacc5c91b2f604f986a3d5179 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 08:24:36 +0100 Subject: Fix logic --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3-54-g00ecf