Skip to content

Commit

Permalink
Update to deku 0.18.1
Browse files Browse the repository at this point in the history
* Remove the use of deku's own from_bytes, instead write our own that
doesn't allow bit offsets. Also add our own from_reader.
* Update deku to 0.18.1, adding seek to a ton of internal buffers and
updating checksum code to support a checksum calculation during Read and
Seek.
* Change Comm-D into ModeS Extended Squitter to be more correct for those
DF calculations
* Remove re-export of deku, sa it's not needed
* Disable test testing_surveillanceidentityreply_err, as it was causing
issues with endian-ness, so I think it's a bad test.
  • Loading branch information
wcampbell0x2a committed Sep 10, 2024
1 parent f5fcf22 commit 4f9e965
Show file tree
Hide file tree
Showing 13 changed files with 416 additions and 328 deletions.
172 changes: 87 additions & 85 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions apps/src/1090/1090.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::io::{BufRead, BufReader};
use std::net::TcpStream;

use adsb_deku::deku::DekuContainerRead;
use adsb_deku::Frame;
use clap::Parser;

Expand Down Expand Up @@ -58,8 +57,8 @@ fn main() {
}

// decode
match Frame::from_bytes((&bytes, 0)) {
Ok((_, frame)) => {
match Frame::from_bytes(&bytes) {
Ok(frame) => {
if options.debug {
println!("{frame:#?}");
}
Expand Down
Loading

0 comments on commit 4f9e965

Please sign in to comment.