Fixed CCSDS parsing
+ Using bitvec now for parsing binary data + Fixed issues with how some data was handled across byte boundaries + Updated CCSDS def + Added test to verify good ccsds parsing + clippy + fmt
This commit is contained in:
9 files changed
+289
-74
No files matched your search
+2
-7
@@ -33,14 +33,9 @@ fn init() -> Result<(Vec<u8>, Format), FormatyError> {
|
||||
|
||||
let config = FormatConfig::new(&args.config)?;
|
||||
|
||||
let format = config
|
||||
.formats
|
||||
.iter()
|
||||
.find(|f| f.name == args.format)
|
||||
.ok_or_else(|| FormatyError::FormatNotFound(args.format.to_string()))?
|
||||
.clone();
|
||||
let format = config.get_format(&args.format)?;
|
||||
|
||||
let data = parse_bytes_from_input_arg(args.data).unwrap();
|
||||
let data = parse_bytes_from_input_arg(args.data)?;
|
||||
Ok((data, format))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user