auto-sync

This commit is contained in:
rusEfi 2016-01-31 15:01:41 -05:00
parent 5f2be6983d
commit a6fa6d73ab
2 changed files with 7 additions and 5 deletions

View File

@ -196,6 +196,11 @@ void setEngineLoadAccelLen(int len) {
accelInfo();
}
void updateAccelParameters() {
setEngineLoadAccelLen(engineConfiguration->engineLoadAccelLength);
setTpsAccelLen(engineConfiguration->tpsAccelLength);
}
void initAccelEnrichment(Logging *sharedLogger) {
logger = sharedLogger;
addConsoleActionI("set_tps_accel_len", setTpsAccelLen);
@ -211,10 +216,6 @@ void initAccelEnrichment(Logging *sharedLogger) {
addConsoleActionF("set_engine_decel_multiplier", setDecelMult);
addConsoleAction("accelinfo", accelInfo);
/**
* This would initialize data structures
*/
setEngineLoadAccelLen(engineConfiguration->engineLoadAccelLength);
setTpsAccelLen(engineConfiguration->tpsAccelLength);
updateAccelParameters();
}
#endif /* ! EFI_UNIT_TEST */

View File

@ -61,6 +61,7 @@ void initAccelEnrichment(Logging *sharedLogger);
void setEngineLoadAccelLen(int len);
void setEngineLoadAccelThr(float value);
void setEngineLoadAccelMult(float value);
void updateAccelParameters();
#endif /* ACC_ENRICHMENT_H_ */