Skip to content

Commit

Permalink
change config to depend on the target
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamTakeshi committed Aug 7, 2024
1 parent 7777f00 commit 4e7adf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/lakers-no_std/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use cortex_m_rt::entry;
use cortex_m_semihosting::debug::{self, EXIT_SUCCESS};

#[cfg(not(feature = "rtt"))]
#[cfg(not(target_abi = "eabihf"))]
use cortex_m_semihosting::hprintln as info;

#[cfg(feature = "rtt")]
#[cfg(target_abi = "eabihf")]
use defmt::info;

use defmt_rtt as _; // global logger
Expand Down

0 comments on commit 4e7adf0

Please sign in to comment.