summaryrefslogtreecommitdiffstats
path: root/src/devices/features/tier2.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2020-06-21 22:52:41 +0200
committerDiego Barrios Romero <eldruin@gmail.com>2020-06-21 22:52:41 +0200
commit6aed921780dbe12c058e0aa0ce8b617e404b5a87 (patch)
tree3b76c4d8946aede3e48fcfade62a2e19488ee118 /src/devices/features/tier2.rs
parentb7e9c9acf1bb42f4966930354135782bab57394a (diff)
downloadads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.gz
ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.xz
ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.zip
Use edition 2018
Diffstat (limited to 'src/devices/features/tier2.rs')
-rw-r--r--src/devices/features/tier2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/features/tier2.rs b/src/devices/features/tier2.rs
index 0b0b92c..96330a0 100644
--- a/src/devices/features/tier2.rs
+++ b/src/devices/features/tier2.rs
@@ -2,7 +2,7 @@
//!
//! These are the features included only in ADS1x14, ADS1x15
-use {
+use crate::{
conversion, ic, interface, Ads1x1x, BitFlags as BF, ComparatorLatching, ComparatorMode,
ComparatorPolarity, ComparatorQueue, Error, FullScaleRange, Register,
};
@@ -17,7 +17,7 @@ where
///
/// This configures the programmable gain amplifier and determines the measurable input voltage range.
pub fn set_full_scale_range(&mut self, range: FullScaleRange) -> Result<(), Error<E>> {
- use FullScaleRange as FSR;
+ use crate::FullScaleRange as FSR;
let cfg = self.config.clone();
let config = match range {
FSR::Within6_144V => cfg.with_low(BF::PGA2).with_low(BF::PGA1).with_low(BF::PGA0),