auto-sync

This commit is contained in:
rusEfi 2014-10-21 10:04:12 -05:00
parent 5aab1d70bb
commit 24b3a7b71d
2 changed files with 9 additions and 2 deletions

View File

@ -93,6 +93,13 @@ configuration_s * configuration = &cfg;
*/
Engine engine;
/**
* I am not sure if this needs to be configurable.
*
* Also technically the whole feature might be implemented as cranking fuel coefficient curve by TPS.
*/
#define CLEANUP_MODE_TPS 95
static msg_t csThread(void) {
chRegSetThreadName("status");
#if EFI_SHAFT_POSITION_INPUT
@ -171,7 +178,7 @@ int getTimeNowSeconds(void) {
static void cylinderCleanupControl(Engine *engine) {
bool newValue;
if (engineConfiguration->isCylinderCleanupEnabled) {
newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > 95;
newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > CLEANUP_MODE_TPS;
} else {
newValue = false;
}

View File

@ -249,5 +249,5 @@ void firmwareError(const char *fmt, ...) {
}
int getRusEfiVersion(void) {
return 20141020;
return 20141021;
}