Implement blocking embedded-io::Write for Uart & UartTx

This commit is contained in:
Mathias
2023-09-14 10:09:09 +02:00
parent 9c647dd0e8
commit 49847ff432
2 changed files with 52 additions and 24 deletions

View File

@@ -410,12 +410,6 @@ impl<'d, T: BasicInstance> Drop for BufferedUartTx<'d, T> {
}
}
impl embedded_io_async::Error for Error {
fn kind(&self) -> embedded_io_async::ErrorKind {
embedded_io_async::ErrorKind::Other
}
}
impl<'d, T: BasicInstance> embedded_io_async::ErrorType for BufferedUart<'d, T> {
type Error = Error;
}