From fc3581d0d1d8595457c956b37f9634a6435634d6 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Wed, 22 Jul 2026 16:15:58 +0200 Subject: [PATCH] main: Fix feature flags --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c0d9e3a..bddb837 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,6 @@ use log::{error, info, warn}; extern crate alloc; mod applogic; -#[cfg(feature = "spat")] mod cache; mod geo_alg; mod io; @@ -405,17 +404,20 @@ fn handle_frame(frame: wifi::sniffer::PromiscuousPkt<'_>) { } } +#[cfg(feature = "spat")] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] struct RatelimitData { station_id: u32, msg_count: u8, } +#[cfg(feature = "spat")] impl cache::Cachable for RatelimitData { fn key(&self) -> u32 { self.station_id } } +#[cfg(feature = "spat")] impl cache::Initable for RatelimitData { fn init(key: u32) -> Self { Self {