Skip to content

Commit

Permalink
use same spacepackets version
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Aug 19, 2024
1 parent 643ce9a commit d3aa56a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion satrs-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ optional = true
version = ">0.9"
default-features = false
git = "https://egit.irs.uni-stuttgart.de/rust/spacepackets"
branch = "all-cfdp-updates"
branch = "main"

[features]
serde = ["dep:serde", "spacepackets/serde"]
Expand Down
2 changes: 1 addition & 1 deletion satrs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ default-features = false
version = "0.12"
default-features = false
git = "https://egit.irs.uni-stuttgart.de/rust/spacepackets"
branch = "eof-pdu-update"
branch = "main"

[dependencies.cobs]
git = "https://github.com/robamu/cobs.rs.git"
Expand Down
5 changes: 4 additions & 1 deletion satrs/src/cfdp/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ impl<
}
if self.state_helper.step == TransactionStep::NoticeOfCompletion {
self.notice_of_completion(cfdp_user);
self.reset();
/*
def _notice_of_completion(self):
if self.cfg.indication_cfg.transaction_finished_indication_required:
Expand Down Expand Up @@ -709,6 +710,8 @@ impl<

/// This function is public to allow completely resetting the handler, but it is explicitely
/// discouraged to do this. CFDP has mechanism to detect issues and errors on itself.
/// Resetting the handler might interfere with these mechanisms and lead to unexpected
/// behaviour.
pub fn reset(&mut self) {
self.state_helper = Default::default();
self.tstate = None;
Expand Down Expand Up @@ -767,7 +770,7 @@ mod tests {
let fault_handler = TestFaultHandler::default();
let test_sender = TestCfdpSender::default();
let source_handler = default_source_handler(fault_handler, test_sender);
// assert!(dest_handler.transmission_mode().is_none());
assert!(source_handler.transmission_mode().is_none());
// assert!(fault_handler.all_queues_empty());
}
}

0 comments on commit d3aa56a

Please sign in to comment.