summaryrefslogtreecommitdiffstats
path: root/src/channels.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/channels.rs
parentb7e9c9acf1bb42f4966930354135782bab57394a (diff)
downloadads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.gz
ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.tar.xz
ads1x1x-async-6aed921780dbe12c058e0aa0ce8b617e404b5a87.zip
Use edition 2018
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 {