auto-sync
This commit is contained in:
parent
5cf518cb16
commit
436e5a72c3
|
@ -182,7 +182,8 @@ typedef struct {
|
|||
int tunerStudioThreadPeriod;
|
||||
int generalPeriodicThreadPeriod;
|
||||
|
||||
int tunerStudioSerialSpeed;
|
||||
short int tunerStudioSerialSpeed;
|
||||
short int unusedShort;
|
||||
|
||||
brain_pin_e boardTestModeJumperPin;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ bool_t isTriggerDecoderError(void) {
|
|||
return errorDetection.sum(6) > 4;
|
||||
}
|
||||
|
||||
static inline bool isSynchronizationGap(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape,
|
||||
static ALWAYS_INLINE bool isSynchronizationGap(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape,
|
||||
const int currentDuration) {
|
||||
if (!triggerShape->isSynchronizationNeeded) {
|
||||
return false;
|
||||
|
@ -72,7 +72,7 @@ static inline bool isSynchronizationGap(TriggerState *shaftPositionState, trigge
|
|||
&& currentDuration < shaftPositionState->toothed_previous_duration * triggerShape->syncRatioTo;
|
||||
}
|
||||
|
||||
static inline bool noSynchronizationResetNeeded(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape) {
|
||||
static ALWAYS_INLINE bool noSynchronizationResetNeeded(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape) {
|
||||
if (triggerShape->isSynchronizationNeeded) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue