Make the UART not constantly flush output
This commit is contained in:
@@ -64,7 +64,6 @@ impl BasicUart {
|
|||||||
while let Some(byte) = bufs.tx.pop_front() {
|
while let Some(byte) = bufs.tx.pop_front() {
|
||||||
print!("{}", byte as char);
|
print!("{}", byte as char);
|
||||||
}
|
}
|
||||||
stdout().flush().unwrap();
|
|
||||||
|
|
||||||
let mut buffer = [0u8; 1];
|
let mut buffer = [0u8; 1];
|
||||||
if let Ok(n) = stdin().read(&mut buffer) {
|
if let Ok(n) = stdin().read(&mut buffer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user