diff --git a/src/radio.rs b/src/radio.rs index 1f33b489f705383098986b175ef3f197c4953183..20edb2459024f99a4a7d95e2ab9ecbcd12ebe88b 100644 --- a/src/radio.rs +++ b/src/radio.rs @@ -30,9 +30,9 @@ impl UartRadio { // wait until we have space for packets while buf != [0x02] { - println!("full buf! sleeping..."); sleep(Duration::from_millis(10)); + // poll to see if the buffer has emptied yet self.uart.write_all(&[0x00])?; self.uart.flush()?;