fix errors
This commit is contained in:
parent
0c0bf6e4db
commit
749633ddf2
1 changed files with 2 additions and 2 deletions
|
@ -635,11 +635,11 @@ where
|
||||||
let bad_read = r.rxd.amount.read().bits() != buffer.len() as u32;
|
let bad_read = r.rxd.amount.read().bits() != buffer.len() as u32;
|
||||||
|
|
||||||
if bad_write {
|
if bad_write {
|
||||||
return Err(Error::TxBufferTooLong);
|
return Err(Error::Transmit);
|
||||||
}
|
}
|
||||||
|
|
||||||
if bad_read {
|
if bad_read {
|
||||||
return Err(Error::RxBufferTooLong);
|
return Err(Error::Receive);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue