aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-10-25 15:47:42 -0400
committerBrian Cully <bjc@kublai.com>2022-10-25 15:47:42 -0400
commit32355266caaa855585c86a79fa74ef15feee311d (patch)
tree472cf8946a133cbff059911e5489892b933436a9 /src
parentd7f09b1e22ced7449dbe37b848a54bbc328e92d3 (diff)
downloadluchie-32355266caaa855585c86a79fa74ef15feee311d.tar.gz
luchie-32355266caaa855585c86a79fa74ef15feee311d.zip
cirque: allow unused fields for i²c and rap addresses
Diffstat (limited to 'src')
-rw-r--r--src/cirque.rs2
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,