we already have this copied to a local

This commit is contained in:
Matthew Kennedy 2024-12-28 14:55:50 -08:00 committed by rusefillc
parent 6f4c123870
commit 4d808d6a0c
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ void TriggerFormDetails::prepareEventAngles(TriggerWaveform *shape) {
// this may be <length for some triggers like symmetrical crank Miata NB
size_t triggerShapeLength = shape->getSize();
assertAngleRange(shape->triggerShapeSynchPointIndex, "triggerShapeSynchPointIndex", ObdCode::CUSTOM_TRIGGER_SYNC_ANGLE2);
assertAngleRange(triggerShapeSynchPointIndex, "triggerShapeSynchPointIndex", ObdCode::CUSTOM_TRIGGER_SYNC_ANGLE2);
efiAssertVoid(ObdCode::CUSTOM_TRIGGER_CYCLE, getTriggerCentral()->engineCycleEventCount != 0, "zero engineCycleEventCount");
for (size_t eventIndex = 0; eventIndex < length; eventIndex++) {
@ -140,7 +140,7 @@ void TriggerFormDetails::prepareEventAngles(TriggerWaveform *shape) {
eventAngles[1] = 0;
} else {
// Rotate the trigger around so that the sync point is at position 0
auto wrappedIndex = (shape->triggerShapeSynchPointIndex + eventIndex) % length;
auto wrappedIndex = (triggerShapeSynchPointIndex + eventIndex) % length;
// Compute this tooth's position within the trigger definition
// (wrap, as the trigger def may be smaller than total trigger length)