diff options
Diffstat (limited to 'examples/cfg.rs')
-rw-r--r-- | examples/cfg.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/cfg.rs b/examples/cfg.rs index c8892eaf..f900286b 100644 --- a/examples/cfg.rs +++ b/examples/cfg.rs @@ -5,13 +5,14 @@ #![no_main] #![no_std] -use cortex_m_semihosting::debug; -#[cfg(debug_assertions)] -use cortex_m_semihosting::hprintln; use panic_semihosting as _; #[rtic::app(device = lm3s6965)] mod app { + use cortex_m_semihosting::debug; + #[cfg(debug_assertions)] + use cortex_m_semihosting::hprintln; + #[resources] struct Resources { #[cfg(debug_assertions)] // <- `true` when using the `dev` profile |