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

View File

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