trigger decoder init

This commit is contained in:
Matthew Kennedy 2024-04-25 16:58:19 -07:00
parent 314c1e4b9c
commit 54a4eed7d7
1 changed files with 2 additions and 2 deletions

View File

@ -52,14 +52,14 @@ void TriggerDecoderBase::setShaftSynchronized(bool value) {
}
} else {
// sync loss
mostRecentSyncTime = 0;
mostRecentSyncTime = {};
}
shaft_is_synchronized = value;
}
void TriggerDecoderBase::resetState() {
setShaftSynchronized(false);
toothed_previous_time = 0;
toothed_previous_time = {};
memset(toothDurations, 0, sizeof(toothDurations));