reducing start-up mess
This commit is contained in:
parent
6a2ee869a9
commit
14f69b6b93
|
@ -39,8 +39,4 @@ void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
void initAlgo(Logging *sharedLogger) {
|
void initAlgo(Logging *sharedLogger) {
|
||||||
initInterpolation(sharedLogger);
|
initInterpolation(sharedLogger);
|
||||||
#if EFI_SIMULATOR
|
|
||||||
// todo: this is a mess, remove code duplication with PROD
|
|
||||||
initSettings();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -556,6 +556,9 @@ static void getKnockInfo(void) {
|
||||||
|
|
||||||
// this method is used by real firmware and simulator
|
// this method is used by real firmware and simulator
|
||||||
void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
|
#if EFI_SIMULATOR
|
||||||
|
printf("commonInitEngineController\n");
|
||||||
|
#endif
|
||||||
initConfigActions();
|
initConfigActions();
|
||||||
initMockVoltage();
|
initMockVoltage();
|
||||||
|
|
||||||
|
@ -592,6 +595,9 @@ void commonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S
|
||||||
}
|
}
|
||||||
|
|
||||||
void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
void initEngineContoller(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
|
#if EFI_SIMULATOR
|
||||||
|
printf("initEngineContoller\n");
|
||||||
|
#endif
|
||||||
addConsoleAction("analoginfo", printAnalogInfo);
|
addConsoleAction("analoginfo", printAnalogInfo);
|
||||||
commonInitEngineController(sharedLogger);
|
commonInitEngineController(sharedLogger);
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,9 @@ static void setSensorChartFrequency(int value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void initSensorChart(void) {
|
void initSensorChart(void) {
|
||||||
|
#if EFI_SIMULATOR
|
||||||
|
printf("initSensorChart\n");
|
||||||
|
#endif
|
||||||
addConsoleActionI("set_sensor_chart_freq", setSensorChartFrequency);
|
addConsoleActionI("set_sensor_chart_freq", setSensorChartFrequency);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
Loading…
Reference in New Issue