diff options
Diffstat (limited to 'src/devices/common.rs')
-rw-r--r-- | src/devices/common.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/common.rs b/src/devices/common.rs index 5abb99c..1121265 100644 --- a/src/devices/common.rs +++ b/src/devices/common.rs @@ -1,12 +1,11 @@ //! Common functions -use { Ads1x1x, Error, Register, BitFlags, interface, Config, ic }; +use { Ads1x1x, Error, Register, BitFlags, interface, Config }; use super::OperatingMode; -impl<DI, IC, MODE, E> Ads1x1x<DI, IC, MODE> +impl<DI, IC, CONV, MODE, E> Ads1x1x<DI, IC, CONV, MODE> where - DI: interface::WriteData<Error = E>, - IC: ic::Resolution + DI: interface::WriteData<Error = E> { pub(super) fn set_operating_mode(&mut self, mode: OperatingMode) -> Result<(), Error<E>> { let config; |