mirror of https://github.com/FOME-Tech/fome-fw.git
trigger decoder init
This commit is contained in:
parent
314c1e4b9c
commit
54a4eed7d7
|
@ -52,14 +52,14 @@ void TriggerDecoderBase::setShaftSynchronized(bool value) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// sync loss
|
// sync loss
|
||||||
mostRecentSyncTime = 0;
|
mostRecentSyncTime = {};
|
||||||
}
|
}
|
||||||
shaft_is_synchronized = value;
|
shaft_is_synchronized = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TriggerDecoderBase::resetState() {
|
void TriggerDecoderBase::resetState() {
|
||||||
setShaftSynchronized(false);
|
setShaftSynchronized(false);
|
||||||
toothed_previous_time = 0;
|
toothed_previous_time = {};
|
||||||
|
|
||||||
memset(toothDurations, 0, sizeof(toothDurations));
|
memset(toothDurations, 0, sizeof(toothDurations));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue