Skip to content

Commit eb9107d

Browse files
committed
Remove log-rtt
1 parent 67f5d30 commit eb9107d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/utils/logger.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(unsafe_code)]
22
cfg_if::cfg_if! {
3-
if #[cfg(all(feature = "log-rtt", feature = "defmt"))] {
3+
if #[cfg(feature = "defmt")] {
44
#[allow(unused_imports)]
55
pub use defmt::{info, trace, warn, debug, error};
66

@@ -55,7 +55,7 @@ cfg_if::cfg_if! {
5555
}
5656

5757
}
58-
else if #[cfg(all(feature = "log-rtt"/*, feature = "defmt"*/))] {
58+
else if #[cfg(feature = "defmt")] {
5959
use defmt_rtt as _; // global logger
6060
use panic_probe as _;
6161
#[allow(unused_imports)]
@@ -66,9 +66,6 @@ cfg_if::cfg_if! {
6666
#[allow(dead_code)]
6767
pub fn init() {}
6868
}
69-
else if #[cfg(all(feature = "log-rtt", not(feature = "defmt")))] {
70-
// TODO
71-
}
7269
else if #[cfg(feature = "log-semihost")] {
7370
use panic_semihosting as _;
7471

0 commit comments

Comments
 (0)