nrf: More nits cleaned up - useless cast and struct item
This commit is contained in:
parent
a8710e943d
commit
580ab48451
2 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ impl<'d> NorFlash for Nvmc<'d> {
|
|||
if offset as usize + bytes.len() > FLASH_SIZE {
|
||||
return Err(Error::OutOfBounds);
|
||||
}
|
||||
if offset as usize % 4 != 0 || bytes.len() as usize % 4 != 0 {
|
||||
if offset as usize % 4 != 0 || bytes.len() % 4 != 0 {
|
||||
return Err(Error::Unaligned);
|
||||
}
|
||||
|
||||
|
|
|
@ -619,7 +619,7 @@ impl<'d, T: Instance> UarteRx<'d, T> {
|
|||
UarteRxWithIdle {
|
||||
rx: self,
|
||||
timer,
|
||||
ppi_ch1: ppi_ch1,
|
||||
ppi_ch1,
|
||||
_ppi_ch2: ppi_ch2,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue