cpld: add size_of

This commit is contained in:
occheung 2020-08-26 11:04:39 +08:00
parent 5f874e81b5
commit 990fc075f1
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use embedded_hal::{
};
use core::cell;
use core::mem::size_of;
use cortex_m;
use cortex_m::asm::nop;
@ -63,7 +64,6 @@ where
{
type Error = Error<E>;
fn select_chip(&mut self, chip: u8) -> Result<(), Self::Error> {
hprintln!("Selected chip {}.", chip);
match chip & (1 << 0) {
0 => self.chip_select.0.set_low(),
_ => self.chip_select.0.set_high(),