summaryrefslogtreecommitdiffstats
path: root/src/channels.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.rs')
-rw-r--r--src/channels.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channels.rs b/src/channels.rs
index 90b9b5d..c0f0ff9 100644
--- a/src/channels.rs
+++ b/src/channels.rs
@@ -1,5 +1,6 @@
//! ADC input channels
-use {hal, ic, Ads1x1x, BitFlags as BF, Config};
+use crate::{ic, Ads1x1x, BitFlags as BF, Config};
+use embedded_hal::adc;
/// ADC input channel selection
#[allow(dead_code)]
@@ -36,7 +37,7 @@ pub enum ChannelSelection {
macro_rules! impl_channel {
( $IC:ident, $CH:ident ) => {
- impl<DI, CONV, MODE> hal::adc::Channel<Ads1x1x<DI, ic::$IC, CONV, MODE>> for channel::$CH {
+ impl<DI, CONV, MODE> adc::Channel<Ads1x1x<DI, ic::$IC, CONV, MODE>> for channel::$CH {
type ID = ChannelSelection;
fn channel() -> Self::ID {