auto-sync
This commit is contained in:
parent
ae00f53247
commit
3eb79bd3cf
|
@ -93,6 +93,13 @@ configuration_s * configuration = &cfg;
|
||||||
*/
|
*/
|
||||||
Engine engine;
|
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) {
|
static msg_t csThread(void) {
|
||||||
chRegSetThreadName("status");
|
chRegSetThreadName("status");
|
||||||
#if EFI_SHAFT_POSITION_INPUT
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
|
@ -171,7 +178,7 @@ int getTimeNowSeconds(void) {
|
||||||
static void cylinderCleanupControl(Engine *engine) {
|
static void cylinderCleanupControl(Engine *engine) {
|
||||||
bool newValue;
|
bool newValue;
|
||||||
if (engineConfiguration->isCylinderCleanupEnabled) {
|
if (engineConfiguration->isCylinderCleanupEnabled) {
|
||||||
newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > 95;
|
newValue = isCrankingE(engine) && getTPS(engine->engineConfiguration) > CLEANUP_MODE_TPS;
|
||||||
} else {
|
} else {
|
||||||
newValue = false;
|
newValue = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,5 +249,5 @@ void firmwareError(const char *fmt, ...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int getRusEfiVersion(void) {
|
int getRusEfiVersion(void) {
|
||||||
return 20141020;
|
return 20141021;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue