We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f656193 commit a3c0965Copy full SHA for a3c0965
src/stdout.rs
@@ -19,8 +19,8 @@ struct SerialWrapper(Tx<UART0>);
19
impl core::fmt::Write for SerialWrapper {
20
fn write_str(&mut self, s: &str) -> fmt::Result {
21
for byte in s.as_bytes() {
22
- if *byte == '\n' as u8 {
23
- let res = block!(self.0.write('\r' as u8));
+ if *byte == b'\n' {
+ let res = block!(self.0.write(b'\r'));
24
25
if res.is_err() {
26
return Err(::core::fmt::Error);
@@ -53,7 +53,7 @@ pub fn configure<X, Y>(
53
interrupt::free(|_| unsafe {
54
STDOUT.replace(SerialWrapper(tx));
55
});
56
- return rx;
+ rx
57
}
58
59
/// Writes string to stdout
0 commit comments