summaryrefslogtreecommitdiffstats
path: root/src/devices/mode/oneshot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/mode/oneshot.rs')
-rw-r--r--src/devices/mode/oneshot.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/mode/oneshot.rs b/src/devices/mode/oneshot.rs
index fc4a5ed..41a9f26 100644
--- a/src/devices/mode/oneshot.rs
+++ b/src/devices/mode/oneshot.rs
@@ -3,7 +3,6 @@
use core::marker::PhantomData;
use { Ads1x1x, mode, Error, Register, BitFlags, Config };
use { interface, conversion, hal, nb };
-use devices::OperatingMode;
use channels::ChannelSelection;
impl<DI, IC, CONV, E> Ads1x1x<DI, IC, CONV, mode::OneShot>
@@ -12,8 +11,7 @@ where
CONV: conversion::ConvertMeasurement
{
/// Change operating mode to Continuous
- pub fn into_continuous(mut self) -> Result<Ads1x1x<DI, IC, CONV, mode::Continuous>, Error<E>> {
- self.set_operating_mode(OperatingMode::Continuous)?;
+ pub fn into_continuous(self) -> Result<Ads1x1x<DI, IC, CONV, mode::Continuous>, Error<E>> {
Ok(Ads1x1x {
iface: self.iface,
config: self.config,