diff options
author | Brian Cully <bjc@kublai.com> | 2022-10-25 15:47:42 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-10-25 15:47:42 -0400 |
commit | 32355266caaa855585c86a79fa74ef15feee311d (patch) | |
tree | 472cf8946a133cbff059911e5489892b933436a9 /src/cirque.rs | |
parent | d7f09b1e22ced7449dbe37b848a54bbc328e92d3 (diff) | |
download | luchie-32355266caaa855585c86a79fa74ef15feee311d.tar.gz luchie-32355266caaa855585c86a79fa74ef15feee311d.zip |
cirque: allow unused fields for i²c and rap addresses
Diffstat (limited to 'src/cirque.rs')
-rw-r--r-- | src/cirque.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<T: Ord>(val: T, low: T, high: T) -> T { } /// Register Access Protocol addresses. +#[allow(unused)] #[repr(u8)] enum RAPAddress { FirmwareID = 0x00, |