From 990fc075f11faafad48fbfdd4c853c68f8b539ce Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 26 Aug 2020 11:04:39 +0800 Subject: [PATCH] cpld: add size_of --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 01d9ae3..d98182e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; 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(),