RAM efficiency of VR crank trigger shapes #2182

Audi OEM 5-cyl trigger pattern aka "Tri-Tach" https://rusefi.com/forum/viewtopic.php?f=5&t=1912
This commit is contained in:
rusefillc 2021-01-04 22:00:37 -05:00
parent 8fb32b517b
commit 8c7ab1cbe3
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ void calculateTriggerSynchPoint(
engine->engineCycleEventCount = length;
efiAssertVoid(CUSTOM_SHAPE_LEN_ZERO, length > 0, "shapeLength=0");
if (length >= PWM_PHASE_MAX_COUNT) {
if (shape.getSize() >= PWM_PHASE_MAX_COUNT) {
// todo: by the time we are here we had already modified a lot of RAM out of bounds!
firmwareError(CUSTOM_ERR_TRIGGER_WAVEFORM_TOO_LONG, "Trigger length above maximum: %d", length);
shape.setShapeDefinitionError(true);