diff options
Diffstat (limited to 'src/devices/common.rs')
-rw-r--r-- | src/devices/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/common.rs b/src/devices/common.rs index 92b4f9e..57d67b9 100644 --- a/src/devices/common.rs +++ b/src/devices/common.rs @@ -1,7 +1,7 @@ //! Common functions -use { Ads1x1x, Error, Register, BitFlags, interface, Config }; use super::OperatingMode; +use {interface, Ads1x1x, BitFlags, Config, Error, Register}; impl<DI, IC, CONV, MODE, E> Ads1x1x<DI, IC, CONV, MODE> where @@ -21,7 +21,7 @@ where /// Read whether a measurement is currently in progress. pub fn is_measurement_in_progress(&mut self) -> Result<bool, Error<E>> { let config = Config { - bits: self.iface.read_register(Register::CONFIG)? + bits: self.iface.read_register(Register::CONFIG)?, }; Ok(!config.is_high(BitFlags::OS)) } |