diff options
Diffstat (limited to 'src/devices/ads1x1x/mode/continuous.rs')
-rw-r--r-- | src/devices/ads1x1x/mode/continuous.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/ads1x1x/mode/continuous.rs b/src/devices/ads1x1x/mode/continuous.rs index 1532b62..1472478 100644 --- a/src/devices/ads1x1x/mode/continuous.rs +++ b/src/devices/ads1x1x/mode/continuous.rs @@ -1,12 +1,13 @@ //! Common functions use core::marker::PhantomData; -use { Ads1x1x, mode, Error, interface }; +use { Ads1x1x, mode, Error, interface, ic }; use super::super::OperatingMode; impl<DI, IC, E> Ads1x1x<DI, IC, mode::Continuous> where - DI: interface::WriteData<Error = E> + DI: interface::WriteData<Error = E>, + IC: ic::Resolution { /// Change operating mode to OneShot pub fn into_one_shot(mut self) -> Result<Ads1x1x<DI, IC, mode::OneShot>, Error<E>> { |