Skip to content

Commit 10b5a75

Browse files
committed
Fix serial console output
MUST use \r\n. Just \n doesn't go back to the beginning of the next line. Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 2e5cddb commit 10b5a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ fn main() -> ! {
275275

276276
let time = timer.get_counter();
277277
let mut text: String<64> = String::new();
278-
writeln!(&mut text, "Current timer ticks: {}", time).unwrap();
278+
write!(&mut text, "Current timer ticks: {}\r\n", time).unwrap();
279279

280280
// This only works reliably because the number of bytes written to
281281
// the serial port is smaller than the buffers available to the USB

0 commit comments

Comments
 (0)