Skip to content

Commit

Permalink
arduino-hal: Guard prelude with board-selected as well
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Rahix committed Feb 17, 2021
1 parent 9e41a1e commit 8da215a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arduino-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")] {
Expand Down

0 comments on commit 8da215a

Please sign in to comment.