From 32355266caaa855585c86a79fa74ef15feee311d Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 25 Oct 2022 15:47:42 -0400 Subject: =?UTF-8?q?cirque:=20allow=20unused=20fields=20for=20i=C2=B2c=20an?= =?UTF-8?q?d=20rap=20addresses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cirque.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/cirque.rs b/src/cirque.rs index 5e48269..af2ce6f 100644 --- a/src/cirque.rs +++ b/src/cirque.rs @@ -8,6 +8,7 @@ use nb; use stm32f1xx_hal::rcc::Clocks; /// Default I²C address. +#[allow(unused)] const I2C_ADDR: u8 = 0x2a; // the maximum reportable units @@ -31,6 +32,7 @@ fn clamp(val: T, low: T, high: T) -> T { } /// Register Access Protocol addresses. +#[allow(unused)] #[repr(u8)] enum RAPAddress { FirmwareID = 0x00, -- cgit v1.2.3