diff --git a/examples/rtic_spi.rs b/examples/rtic_spi.rs index 3629dc6e..13e619d9 100644 --- a/examples/rtic_spi.rs +++ b/examples/rtic_spi.rs @@ -59,7 +59,7 @@ mod app { assert!(spi.fifo_status().rxcount == 2); - while let Some(_) = spi.read_data() {} + while spi.read_data().is_some() {} } } }