summaryrefslogtreecommitdiffstats
path: root/src/devices/features/tier1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/features/tier1.rs')
-rw-r--r--src/devices/features/tier1.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/features/tier1.rs b/src/devices/features/tier1.rs
index 9e5cb77..0c940ee 100644
--- a/src/devices/features/tier1.rs
+++ b/src/devices/features/tier1.rs
@@ -1,6 +1,8 @@
//! Common functions
-use {ic, interface, Ads1x1x, BitFlags as BF, DataRate12Bit, DataRate16Bit, Error, Register};
+use crate::{
+ ic, interface, Ads1x1x, BitFlags as BF, DataRate12Bit, DataRate16Bit, Error, Register,
+};
impl<DI, IC, MODE, E> Ads1x1x<DI, IC, ic::Resolution12Bit, MODE>
where
@@ -8,7 +10,7 @@ where
{
/// Set data rate
pub fn set_data_rate(&mut self, rate: DataRate12Bit) -> Result<(), Error<E>> {
- use DataRate12Bit as DR;
+ use crate::DataRate12Bit as DR;
let cfg = self.config.clone();
let config = match rate {
DR::Sps128 => cfg.with_low(BF::DR2).with_low(BF::DR1).with_low(BF::DR0),
@@ -31,7 +33,7 @@ where
{
/// Set data rate
pub fn set_data_rate(&mut self, rate: DataRate16Bit) -> Result<(), Error<E>> {
- use DataRate16Bit as DR;
+ use crate::DataRate16Bit as DR;
let cfg = self.config.clone();
let config = match rate {
DR::Sps8 => cfg.with_low(BF::DR2).with_low(BF::DR1).with_low(BF::DR0),