auto-sync

This commit is contained in:
rusEfi 2014-10-17 16:03:00 -05:00
parent 01cbb67f10
commit 4a24e2241c
2 changed files with 7 additions and 4 deletions

View File

@ -91,14 +91,14 @@ void StartupFuelPumping::setPumpsCounter(engine_configuration_s *engineConfigura
if (pumpsCounter != newValue) { if (pumpsCounter != newValue) {
pumpsCounter = newValue; pumpsCounter = newValue;
if(pumpsCounter==PUMPS_TO_PRIME) { if (pumpsCounter == PUMPS_TO_PRIME) {
#if EFI_PROD_CODE || EFI_SIMULATOR #if EFI_PROD_CODE || EFI_SIMULATOR
scheduleMsg(&logger, "let's squirt prime pulse %f", pumpsCounter); scheduleMsg(&logger, "let's squirt prime pulse %f", pumpsCounter);
#endif #endif
pumpsCounter = 0; pumpsCounter = 0;
} else { } else {
#if EFI_PROD_CODE || EFI_SIMULATOR #if EFI_PROD_CODE || EFI_SIMULATOR
scheduleMsg(&logger, "setPumpsCounter %d", pumpsCounter); scheduleMsg(&logger, "setPumpsCounter %d", pumpsCounter);
#endif #endif
} }

View File

@ -48,7 +48,10 @@ private:
bool stopPins(); bool stopPins();
}; };
#define PUMPS_TO_PRIME 3 /**
* 6 crossing over 50% TPS means pressing and releasing three times
*/
#define PUMPS_TO_PRIME 6
class StartupFuelPumping { class StartupFuelPumping {
public: public: