Fix return definition

This commit is contained in:
Alpha3__0 2023-05-25 11:55:05 -07:00
parent 0d80a95e54
commit dc28a42fd2

View file

@ -758,7 +758,7 @@ mod eh02 {
impl<'d, T: Instance, M: Mode> embedded_hal_02::serial::Write<u8> for UartTx<'d, T, M> {
type Error = Error;
fn write(&mut self, word: u8) -> nb::Result<(), Self::Error> {
fn write(&mut self, word: u8) -> Result<(), nb::Error<Self::Error>> {
let r = T::regs();
unsafe {
if r.uartfr().read().txff() {
@ -770,7 +770,7 @@ mod eh02 {
Ok(())
}
fn flush(&mut self) -> nb::Result<(), Self::Error> {
fn flush(&mut self) -> Result<(), nb::Error<Self::Error>> {
let r = T::regs();
unsafe {
if !r.uartfr().read().txfe() {