Skip to content

Commit

Permalink
allow unsetting pn
Browse files Browse the repository at this point in the history
  • Loading branch information
bmflynn committed Apr 2, 2024
1 parent e88b105 commit 93a9115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ccsds"
version = "0.1.0-beta.3"
version = "0.1.0-beta.4"
authors = ["Bruce Flynn <brucef@ssec.wisc.edu>"]
edition = "2021"
description = "CCSDS spacecraft data stream decoding"
Expand Down
18 changes: 2 additions & 16 deletions src/framing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,20 +402,6 @@ where
/// Default number of frames to buffer in memory while waiting for RS.
pub const DEFAULT_BUFFER_SIZE: usize = 1024;

// pub fn new() -> Self {
// let mut skip_vcids: HashSet<VCID> = HashSet::new();
// skip_vcids.insert(VCID_FILL);
//
// FrameDecoderBuilder {
// interleave: 0,
// pn_decoder: None,
// reed_solomon: None,
// reed_solomon_threads: 0, // Let rayon decide
// reed_solomon_skip_vcids: skip_vcids,
// buffer_size: Self::DEFAULT_BUFFER_SIZE,
// }
// }

/// Limits the number of block waiting in memory for RS.
/// See ``FrameDecoderBuilder::DEFAULT_BUFFER_SIZE``.
#[must_use]
Expand Down Expand Up @@ -446,8 +432,8 @@ where

/// Set pseudo-noise implementation.
#[must_use]
pub fn pn_decode(mut self, pn: P) -> Self {
self.pn_decoder = Some(pn);
pub fn pn_decode(mut self, pn: Option<P>) -> Self {
self.pn_decoder = pn;
self
}

Expand Down

0 comments on commit 93a9115

Please sign in to comment.