Fix a reset bug

Fixes a reset bug
This commit is contained in:
Jaap van Ekris 2023-07-04 23:57:50 +02:00 committed by GitHub
parent 31fdb87eab
commit 43f337c6ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ function createRower (rowerSettings) {
function reset () {
_strokeState = 'WaitingForDrive'
flywheel.reset()
flywheel.maintainStateOnly()
_totalNumberOfStrokes = -1.0
drivePhaseStartTime = 0.0