Larger update #49

Merged
muellerr merged 41 commits from this-is-complex into main 2023-07-08 15:02:42 +02:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 9a40301c0f - Show all commits

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,
@ -217,4 +216,4 @@ impl PusServiceHandler for PusService17TestHandler {
} }
Ok(PusPacketHandlerResult::CustomSubservice(token)) Ok(PusPacketHandlerResult::CustomSubservice(token))
} }
} }