Added RtAps::reset() method, in progress of placing signal generator code in module. Therefore, not working intermediate code

This commit is contained in:
Anne de Jong 2024-10-08 12:01:21 +02:00
parent b7c2f9c3b8
commit 4da8a1c74a
2 changed files with 10 additions and 0 deletions

View File

@ -136,6 +136,11 @@ impl RtAps {
let mut lck = self.status.lock(); let mut lck = self.status.lock();
lck.take() lck.take()
} }
/// Reset power spectra estimator, start with a clean sleeve
pub fn reset(&self) {
self.sender.send(RtApsMessage::ResetStatus).unwrap();
}
} }
impl Drop for RtAps { impl Drop for RtAps {
fn drop(&mut self) { fn drop(&mut self) {
@ -158,6 +163,11 @@ impl RtAps {
} }
None None
} }
#[pyo3(name = "reset")]
fn reset_py(&self) {
self.reset()
}
} }
#[cfg(test)] #[cfg(test)]