beast/aircrafts: filter for crc == 0

This commit is contained in:
Astro 2023-09-23 01:43:54 +02:00
parent fb6932c298
commit bb82574d4a
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ impl Aircrafts {
tokio::spawn(async move {
while let Some(frame) = rx.recv().await {
match frame.parse_adsb() {
Some(adsb_deku::Frame { df: adsb_deku::DF::ADSB(adsb), .. }) => {
Some(adsb_deku::Frame { crc: 0, df: adsb_deku::DF::ADSB(adsb), .. }) => {
state.write().unwrap()
.entry(adsb.icao)
.or_default()