Cleaned up merge UI, added reset step button
This commit is contained in:
@@ -82,6 +82,14 @@ class StepCountingSession {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Manually resets live step detector state and clears detected step events.
|
||||
*/
|
||||
fun resetStepCounter() {
|
||||
liveStepDetector.reset()
|
||||
_stepEvents.value = emptyList()
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Clears all buffering/detection state and rebuilds the step
|
||||
* detector from [settings]; call when a new recording starts.
|
||||
|
||||
Reference in New Issue
Block a user