better state validation
This commit is contained in:
parent
f51810bec9
commit
6c25d4a4cf
|
@ -107,6 +107,7 @@ static angle_t getRunningAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAME
|
||||||
}
|
}
|
||||||
|
|
||||||
angle_t getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
angle_t getAdvance(int rpm, float engineLoad DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
|
efiAssert(!cisnan(engineLoad), "engineLoad", 0);
|
||||||
angle_t angle;
|
angle_t angle;
|
||||||
if (ENGINE(rpmCalculator).isCranking(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
if (ENGINE(rpmCalculator).isCranking(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
// Interpolate the cranking timing angle to the earlier running angle for faster engine start
|
// Interpolate the cranking timing angle to the earlier running angle for faster engine start
|
||||||
|
|
Loading…
Reference in New Issue