Skip to content

Commit

Permalink
Merge pull request #21 from andrewdavidmackenzie/fix_conditional
Browse files Browse the repository at this point in the history
Fix conditional compile
  • Loading branch information
andrewdavidmackenzie authored May 15, 2024
2 parents 0b0807d + dfb9e55 commit 4b6bcb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hw/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::gpio::{GPIOConfig, GPIOState};

#[cfg_attr(feature="pico", path="pico.rs")]
#[cfg_attr(feature="pi", path="pi.rs")]
#[cfg_attr(not(any(feature="pico", feature="pi")), path="none.rs")]
#[cfg_attr(all(feature = "pico", not(feature = "pi")), path = "pico.rs")]
#[cfg_attr(all(feature = "pi", not(feature = "pico")), path = "pi.rs")]
#[cfg_attr(not(any(feature = "pico", feature = "pi")), path = "none.rs")]
mod implementation;

pub fn get() -> impl Hardware {
Expand Down

0 comments on commit 4b6bcb3

Please sign in to comment.