Added RtAps::reset() method, in progress of placing signal generator code in module. Therefore, not working intermediate code
This commit is contained in:
parent
b7c2f9c3b8
commit
4da8a1c74a
@ -136,6 +136,11 @@ impl RtAps {
|
||||
let mut lck = self.status.lock();
|
||||
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 {
|
||||
fn drop(&mut self) {
|
||||
@ -158,6 +163,11 @@ impl RtAps {
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
#[pyo3(name = "reset")]
|
||||
fn reset_py(&self) {
|
||||
self.reset()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Loading…
Reference in New Issue
Block a user