RPM refactoring
This commit is contained in:
parent
ba42a98c2f
commit
534b8f154e
|
@ -259,7 +259,7 @@ static void periodicSlowCallback(Engine *engine) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!engine->rpmCalculator.isRunning()) {
|
if (engine->rpmCalculator.isStopped(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
#if (EFI_PROD_CODE && EFI_ENGINE_CONTROL && EFI_INTERNAL_FLASH) || defined(__DOXYGEN__)
|
#if (EFI_PROD_CODE && EFI_ENGINE_CONTROL && EFI_INTERNAL_FLASH) || defined(__DOXYGEN__)
|
||||||
writeToFlashIfPending();
|
writeToFlashIfPending();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -63,7 +63,7 @@ RpmCalculator::RpmCalculator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RpmCalculator::isStopped(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
bool RpmCalculator::isStopped(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
return false;
|
return rpmValue == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RpmCalculator::isCranking(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
bool RpmCalculator::isCranking(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
|
Loading…
Reference in New Issue