diff --git a/rp2040-hal/src/uart.rs b/rp2040-hal/src/uart.rs index d9c1759..a51c4d2 100644 --- a/rp2040-hal/src/uart.rs +++ b/rp2040-hal/src/uart.rs @@ -19,6 +19,7 @@ use crate::pac::{ }; /// Error type for UART operations. +#[derive(Debug)] pub enum Error { /// Bad argument : when things overflow, ... BadArgument @@ -234,7 +235,7 @@ impl UARTPeripheral { w.data().bits(*c); w }); - + bytes_written += 1; } return Ok(&data[bytes_written..])