this seems to work

This commit is contained in:
Robin Müller 2023-07-05 09:39:35 +02:00
parent 3f47474393
commit 9a40301c0f
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,4 @@
use crate::pus::test::PusServiceHandler;
use crate::pus::{ use crate::pus::{
AcceptedTc, PartialPusHandlingError, PusPacketHandlerResult, PusPacketHandlingError, AcceptedTc, PartialPusHandlingError, PusPacketHandlerResult, PusPacketHandlingError,
PusServiceBase, PusServiceBase,
@ -55,7 +56,14 @@ impl PusService11SchedHandler {
}, },
}; };
} }
pub fn handle_one_tc( }
impl PusServiceHandler for PusService11SchedHandler {
fn psb(&mut self) -> &mut PusServiceBase {
&mut self.psb
}
fn handle_one_tc(
&mut self, &mut self,
addr: StoreAddr, addr: StoreAddr,
token: VerificationToken<TcStateAccepted>, token: VerificationToken<TcStateAccepted>,

View File

@ -109,7 +109,6 @@ pub trait PusServiceHandler {
}, },
}; };
} }
} }
pub struct PusService17TestHandler { pub struct PusService17TestHandler {
psb: PusServiceBase, psb: PusServiceBase,