Rprint printing newline

Is this a bug, or is it me?

rprint!("rprint");
rprintln!("rprintln");

both have a newline at the end. How I can I print to rtt without newline?

What is rprint?

Sorry, it's this macro: rtt_target::rprint

And I must correct:

rprint!("rprint");
rprintln!("rprintln");

works fine, but

rprint!("rprint");
Timer::after_millis(TIME).await; // use embassy_time::Timer;
rprintln!("rprintln");

doesn't, there I get the additional newline. Is there a good explanation for this?

Ok, one more finding:
It works with TIME <= 272. For longer times, it adds the newline.
Edit: ... but this threshold value is also varying from time to time.

How are you receiving the messages? If you use some sort of desktop app, it might be automatically inserting a newline when it thinks the transmission has ended.

I use cargo run on a linux terminal. I don't hink that this introduces newlines - never observed that anywhere else.. And why woulnd't it do that with rprintln! too?

I opened up an Issue here:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.