something went very wrong.

first we have functional defects
that we do not write test to cover newly intdroduced defects
then attempts to fix defects do not compile
This commit is contained in:
rusefi 2020-02-08 08:15:46 -05:00
parent 55e8ee5052
commit e0fb325d5a
4 changed files with 6 additions and 4 deletions

View File

@ -1,2 +1,2 @@
#define reconfigureSensors() {} void reconfigureSensors();

View File

@ -106,9 +106,11 @@ void initDataStructures(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
initSpeedDensity(PASS_ENGINE_PARAMETER_SIGNATURE); initSpeedDensity(PASS_ENGINE_PARAMETER_SIGNATURE);
} }
void initSensors0();
static void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { static void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
#if !EFI_UNIT_TEST #if !EFI_UNIT_TEST
initSensors(); initSensors0();
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */
initSensors(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); initSensors(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX);

View File

@ -5,7 +5,7 @@
#pragma once #pragma once
// Call this once at startup to initialize, configure, and subscribe sensors // Call this once at startup to initialize, configure, and subscribe sensors
void initSensors(); void initSensors0();
// Call this whenever the configuration may have changed, so any sensors // Call this whenever the configuration may have changed, so any sensors
// can be reconfigured with the new settings. // can be reconfigured with the new settings.

View File

@ -12,7 +12,7 @@ static void initSensorCli();
void initTps(); void initTps();
void initOilPressure(); void initOilPressure();
void initSensors() { void initSensors0() {
initTps(); initTps();
initOilPressure(); initOilPressure();