set minimal data len in example
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-12-05 01:44:53 +01:00
parent 33d78292c6
commit 038755e56e
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C

View File

@ -39,7 +39,7 @@
//!
//! ```rust
//! use spacepackets::SpHeader;
//! let sp_header = SpHeader::tc_unseg(0x42, 12, 0).expect("Error creating CCSDS TC header");
//! let sp_header = SpHeader::tc_unseg(0x42, 12, 1).expect("Error creating CCSDS TC header");
//! println!("{:?}", sp_header);
//! let mut ccsds_buf: [u8; 32] = [0; 32];
//! sp_header.write_to_be_bytes(&mut ccsds_buf).expect("Writing CCSDS TC header failed");