Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefi committed Dec 2, 2017
1 parent 3232d0d commit beb05c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/controllers/map_averaging.cpp
Expand Up @@ -241,8 +241,8 @@ static void mapAveragingCallback(trigger_event_e ckpEventType,
}

angle_t samplingEnd = samplingStart + samplingDuration;
fixAngle(samplingEnd, "samplingEnd");
if (!cisnan(samplingEnd)) {
fixAngle(samplingEnd, "samplingEnd");
// only if value is already prepared
int structIndex = getRevolutionCounter() % 2;
// todo: schedule this based on closest trigger event, same as ignition works
Expand Down

0 comments on commit beb05c7

Please sign in to comment.