mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
fix errors
This commit is contained in:
parent
0c0bf6e4db
commit
749633ddf2
@ -635,11 +635,11 @@ where
|
||||
let bad_read = r.rxd.amount.read().bits() != buffer.len() as u32;
|
||||
|
||||
if bad_write {
|
||||
return Err(Error::TxBufferTooLong);
|
||||
return Err(Error::Transmit);
|
||||
}
|
||||
|
||||
if bad_read {
|
||||
return Err(Error::RxBufferTooLong);
|
||||
return Err(Error::Receive);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user