Skip to content

Commit 5cc5bd7

Browse files
committed
rtt: Move initlization print
Move initialization print to C because in rust we don't know if the C code is compiled with NDEBUG or not.
1 parent 526de5c commit 5cc5bd7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/rust/util/src/log.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ pub fn rtt_init() {
5151
CH0_DOWN = Some(channels.down.0);
5252
CH1_UP = Some(channels.up.1);
5353
}
54-
55-
log!("RTT Initialized");
5654
}
5755
}
5856

src/util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,6 @@ void util_log_flush(void)
101101
void util_log_init(void)
102102
{
103103
rust_rtt_init();
104+
util_log("RTT Initialized");
104105
}
105106
#endif

0 commit comments

Comments
 (0)