auto-sync

This commit is contained in:
rusEfi 2016-06-15 22:02:06 -04:00
parent c1509e9dd4
commit 822ff2c8a1
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ angle_t getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_S) {
if (isCrankingR(rpm)) {
angle = engineConfiguration->crankingTimingAngle;
} else {
if (CONFIG(timingMode) == TM_DYNAMIC) {
angle = getRunningAdvance(rpm, engineLoad PASS_ENGINE_PARAMETER);
} else {
angle = engineConfiguration->fixedTiming;
}
}
angle -= engineConfiguration->ignitionOffset;
fixAngle(angle);