refactoring

This commit is contained in:
rusefi 2017-03-01 22:01:08 -05:00
parent d890c8b114
commit da53234ca4
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ floatms_t getSparkDwell(int rpm DECLARE_ENGINE_PARAMETER_S) {
* this method is only used on initialization
*/
int TriggerShape::findAngleIndex(float target DECLARE_ENGINE_PARAMETER_S) {
int engineCycleEventCount = engine->triggerShape.getLength();
int engineCycleEventCount = TRIGGER_SHAPE(getLength());
efiAssert(engineCycleEventCount > 0, "engineCycleEventCount", 0);