From dbecb1c3af672b06e7443134e1efc7f5050e99ff Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:01:40 +0100 Subject: Enforce IC type to contain a resolution --- src/devices/ads1x1x/mode/oneshot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/devices/ads1x1x/mode/oneshot.rs') 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 Ads1x1x where - DI: interface::WriteData + interface::ReadData + DI: interface::WriteData + interface::ReadData, + IC: ic::Resolution { /// Change operating mode to Continuous pub fn into_continuous(mut self) -> Result, Error> { -- cgit v1.2.3-54-g00ecf