From 8da215ad143211eb418a42d6699564e1dad34d63 Mon Sep 17 00:00:00 2001 From: Rahix Date: Wed, 17 Feb 2021 20:57:30 +0100 Subject: [PATCH] arduino-hal: Guard prelude with board-selected as well Add the `cfg(feature = "board-selected")` guard to the prelude module as well to prevent spurious error messages when no board was selected (we only want the "no board selected" error to show up). --- arduino-hal/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/arduino-hal/src/lib.rs b/arduino-hal/src/lib.rs index d032476a83..165750f27f 100644 --- a/arduino-hal/src/lib.rs +++ b/arduino-hal/src/lib.rs @@ -47,6 +47,7 @@ pub mod usart { #[cfg(feature = "board-selected")] pub use usart::Usart; +#[cfg(feature = "board-selected")] pub mod prelude { cfg_if::cfg_if! { if #[cfg(feature = "arduino-uno")] {