last part of #549
This commit is contained in:
parent
4805b5677a
commit
984f5542d8
|
@ -231,7 +231,9 @@ static void mapAveragingCallback(trigger_event_e ckpEventType,
|
||||||
measurementsPerRevolution = measurementsPerRevolutionCounter;
|
measurementsPerRevolution = measurementsPerRevolutionCounter;
|
||||||
measurementsPerRevolutionCounter = 0;
|
measurementsPerRevolutionCounter = 0;
|
||||||
|
|
||||||
for (int i = 0; i < engineConfiguration->specs.cylindersCount; i++) {
|
int samplingCount = CONFIG(measureMapOnlyInOneCylinder) ? 1 : engineConfiguration->specs.cylindersCount;
|
||||||
|
|
||||||
|
for (int i = 0; i < samplingCount; i++) {
|
||||||
angle_t samplingStart = ENGINE(engineState.mapAveragingStart[i]);
|
angle_t samplingStart = ENGINE(engineState.mapAveragingStart[i]);
|
||||||
|
|
||||||
angle_t samplingDuration = ENGINE(engineState.mapAveragingDuration);
|
angle_t samplingDuration = ENGINE(engineState.mapAveragingDuration);
|
||||||
|
|
Loading…
Reference in New Issue