Ignore null bytes from pl011 uart

This commit is contained in:
Jeremy Soller
2022-08-25 20:10:35 -06:00
parent 6a3fc5a68a
commit fb1bdf7c3e

View File

@@ -136,7 +136,10 @@ impl SerialPort {
pub fn receive(&mut self) {
while self.line_sts().contains(UartFrFlags::RXFF) {
debug_input(self.read_reg(self.data_reg) as u8);
let c = self.read_reg(self.data_reg) as u8;
if c != 0 {
debug_input(c);
}
}
debug_notify();
}