update satrs-example

- Bump pyclient tmtccmd dependency
- Small tweaks for example
This commit is contained in:
2023-02-04 13:52:39 +01:00
parent fac8775464
commit 4ffac74ca3
3 changed files with 64 additions and 38 deletions

View File

@ -45,6 +45,7 @@ pub struct TcArgs {
}
impl TcArgs {
#[allow(dead_code)]
fn split(self) -> (PusTcSource, Receiver<StoreAddr>) {
(self.tc_source, self.tc_receiver)
}
@ -214,7 +215,14 @@ fn core_tmtc_loop(
scheduler: Rc<RefCell<PusScheduler>>,
) {
let releaser = |enabled: bool, addr: &StoreAddr| -> bool {
tc_args.tc_source.tc_source.send(*addr).is_ok()
if enabled {
tc_args
.tc_source
.tc_source
.send(*addr)
.expect("sending TC to TC source failed");
}
true
};
let mut pool = tc_args