Skip to content

Commit 9b56f0f

Browse files
authored
Remove unneeded cfgs from examples causing errors on non G474-devices (#133)
1 parent 0c2ed52 commit 9b56f0f

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

examples/comp.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ extern crate cortex_m_rt as rt;
1313

1414
use rt::entry;
1515

16-
#[cfg(not(feature = "stm32g474"))]
17-
#[entry]
18-
fn main() -> ! {
19-
#[allow(clippy::empty_loop)]
20-
loop {} // TODO: add support for more devices
21-
}
22-
23-
#[cfg(feature = "stm32g474")]
2416
#[entry]
2517
fn main() -> ! {
2618
use hal::comparator::{ComparatorExt, ComparatorSplit, Config, Hysteresis, RefintInput};

examples/comp_w_dac.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ extern crate cortex_m_rt as rt;
88

99
use rt::entry;
1010

11-
#[cfg(not(feature = "stm32g474"))]
12-
#[entry]
13-
fn main() -> ! {
14-
#[allow(clippy::empty_loop)]
15-
loop {} // TODO: add support for more devices
16-
}
17-
18-
#[cfg(feature = "stm32g474")]
1911
#[entry]
2012
fn main() -> ! {
2113
use embedded_hal::Direction;

0 commit comments

Comments
 (0)