diff options
Diffstat (limited to 'src/devices/ads1x1x/mode/oneshot.rs')
-rw-r--r-- | src/devices/ads1x1x/mode/oneshot.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/ads1x1x/mode/oneshot.rs b/src/devices/ads1x1x/mode/oneshot.rs index cc36f89..554a55e 100644 --- a/src/devices/ads1x1x/mode/oneshot.rs +++ b/src/devices/ads1x1x/mode/oneshot.rs @@ -8,7 +8,8 @@ use super::convert_measurement; impl<DI, IC, E> Ads1x1x<DI, IC, mode::OneShot> where - DI: interface::WriteData<Error = E> + interface::ReadData<Error = E> + DI: interface::WriteData<Error = E> + interface::ReadData<Error = E>, + IC: ic::Resolution { /// Change operating mode to Continuous pub fn into_continuous(mut self) -> Result<Ads1x1x<DI, IC, mode::Continuous>, Error<E>> { |