0
0
Fork 0

main: Fix feature flags

This commit is contained in:
Jannik Beyerstedt 2026-07-22 16:15:58 +02:00
commit fc3581d0d1

View file

@ -31,7 +31,6 @@ use log::{error, info, warn};
extern crate alloc; extern crate alloc;
mod applogic; mod applogic;
#[cfg(feature = "spat")]
mod cache; mod cache;
mod geo_alg; mod geo_alg;
mod io; 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)] #[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
struct RatelimitData { struct RatelimitData {
station_id: u32, station_id: u32,
msg_count: u8, msg_count: u8,
} }
#[cfg(feature = "spat")]
impl cache::Cachable<u32> for RatelimitData { impl cache::Cachable<u32> for RatelimitData {
fn key(&self) -> u32 { fn key(&self) -> u32 {
self.station_id self.station_id
} }
} }
#[cfg(feature = "spat")]
impl cache::Initable<Self, u32> for RatelimitData { impl cache::Initable<Self, u32> for RatelimitData {
fn init(key: u32) -> Self { fn init(key: u32) -> Self {
Self { Self {