Skip to content

Commit

Permalink
Remove unneeded cfgs from examples causing errors on non G474-devices (
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin authored Aug 24, 2024
1 parent 0c2ed52 commit 9b56f0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions examples/comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ extern crate cortex_m_rt as rt;

use rt::entry;

#[cfg(not(feature = "stm32g474"))]
#[entry]
fn main() -> ! {
#[allow(clippy::empty_loop)]
loop {} // TODO: add support for more devices
}

#[cfg(feature = "stm32g474")]
#[entry]
fn main() -> ! {
use hal::comparator::{ComparatorExt, ComparatorSplit, Config, Hysteresis, RefintInput};
Expand Down
8 changes: 0 additions & 8 deletions examples/comp_w_dac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ extern crate cortex_m_rt as rt;

use rt::entry;

#[cfg(not(feature = "stm32g474"))]
#[entry]
fn main() -> ! {
#[allow(clippy::empty_loop)]
loop {} // TODO: add support for more devices
}

#[cfg(feature = "stm32g474")]
#[entry]
fn main() -> ! {
use embedded_hal::Direction;
Expand Down

0 comments on commit 9b56f0f

Please sign in to comment.