beast/aircrafts: filter for crc == 0
This commit is contained in:
parent
fb6932c298
commit
bb82574d4a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue