Skip to content

Commit 12aedb1

Browse files
authored
Update port.rs to do \r\n
rust uses only \n regardless of platform and some serial monitors such as the qemu one need \r\n. This would fix this.
1 parent 53b7a1b commit 12aedb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/port.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ impl SerialPort {
107107
self.send_raw(b' ');
108108
self.send_raw(8);
109109
}
110+
0x0a => {
111+
self.send_raw(0x0d);
112+
self.send_raw(0x0a);
113+
}
110114
data => {
111115
self.send_raw(data);
112116
}

0 commit comments

Comments
 (0)