From a88264920e91624e3056d81d8a21445325fe850a Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Wed, 26 Dec 2018 14:17:45 +1100 Subject: [PATCH] Fix some warnings --- src/interface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.rs b/src/interface.rs index ba29acc..fc78ee0 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -3,8 +3,6 @@ use hal; // Section 15.2 of the HINK-E0213A07 data sheet says to hold for 10ms const RESET_DELAY_MS: u8 = 10; -const MAX_SPI_SPEED_HZ: u32 = 20_000_000; - /// Trait implemented by displays to provide implemenation of core functionality. pub trait DisplayInterface { type Error; @@ -80,6 +78,8 @@ pub trait DisplayInterface { /// /// // Build the interface from the pins and SPI device /// let controller = ssd1675::Interface::new(spi, cs, busy, dc, reset); + +#[allow(dead_code)] // Prevent warning about CS being unused pub struct Interface { /// SPI interface spi: SPI,