Skip to content

Commit

Permalink
Fix imports in serial module
Browse files Browse the repository at this point in the history
  • Loading branch information
teskje committed Apr 5, 2020
1 parent 595ffc3 commit 6efe7b1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,20 @@ use nb;
feature = "stm32f358",
feature = "stm32f398"
))]
use crate::gpio::{gpiod, gpioe};
use crate::gpio::gpiod;
#[cfg(any(
feature = "stm32f302",
feature = "stm32f303xb",
feature = "stm32f303xc",
feature = "stm32f303xd",
feature = "stm32f303xe",
feature = "stm32f373",
feature = "stm32f378",
feature = "stm32f328",
feature = "stm32f358",
feature = "stm32f398"
))]
use crate::gpio::gpioe;

#[cfg(feature = "stm32f303")]
mod dma_imports {
Expand Down

0 comments on commit 6efe7b1

Please sign in to comment.