-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rprint! adding newline #47
Comments
This shows some more strange behaviour:
Output:
|
If anyone is going to look at the code for this, I have a suspicion is that this is not random, but rather related to how and when rtt-target and the application (are you using probe-rs run, cargo-embed, or the VSCode debugger???) flushes the buffer.
…________________________________
From: pkoevesdi ***@***.***>
Sent: May 1, 2024 2:07 AM
To: probe-rs/rtt-target ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [probe-rs/rtt-target] rprint! adding newline (Issue #47)
Strange behaviour:
rprint!("rprint");
rprintln!("rprintln");
works as expected, output: rprintrprintln.
But
rprint!("rprint");
Timer::after_millis(TIME).await; // use embassy_time::Timer;
rprintln!("rprintln");
adds a newline, depending on the value of TIME. Output:
rprintr
rprintln
when TIME is something above 270 (thereshold is changing from time to time).
—
Reply to this email directly, view it on GitHub<#47>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJJRNXHZAP5L2RSLIMNLHLZACBAVAVCNFSM6AAAAABHBQSFQKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TEOJZGIYTGNI>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Very mysterious. Which program on your computer are you using to look at the output? |
I use both, |
What do you have configured as the runner in
|
From the original posting, I think what is happening is that somewhere between
|
Were you able to reproduce the problem? My |
I put up a minimum (?) working project that shows this behaviour. |
Strange behaviour:
works as expected, output:
rprintrprintln
.But
adds a newline, depending on the value of TIME. Output:
when TIME is something above 270 (thereshold is changing from time to time).
The text was updated successfully, but these errors were encountered: