another last part of #549

This commit is contained in:
rusefi 2018-01-24 09:23:46 -05:00
parent 63b442c483
commit 699f3255a9
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ static void mapAveragingCallback(trigger_event_e ckpEventType,
measurementsPerRevolution = measurementsPerRevolutionCounter;
measurementsPerRevolutionCounter = 0;
int samplingCount = CONFIG(measureMapOnlyInOneCylinder) ? 1 : engineConfiguration->specs.cylindersCount;
int samplingCount = boardConfiguration->measureMapOnlyInOneCylinder ? 1 : engineConfiguration->specs.cylindersCount;
for (int i = 0; i < samplingCount; i++) {
angle_t samplingStart = ENGINE(engineState.mapAveragingStart[i]);