no need to guard this against tests
This commit is contained in:
parent
2a41fbfedb
commit
a920809bdd
|
@ -7,7 +7,6 @@
|
|||
|
||||
static FunctionalSensor fuelSensor(SensorType::FuelLevel, /* timeout = */ MS2NT(500));
|
||||
|
||||
#if !EFI_UNIT_TEST
|
||||
// extract the type of the elements in the bin/value arrays
|
||||
using BinType = std::remove_extent_t<decltype(config->fuelLevelBins)>;
|
||||
using ValueType = std::remove_extent_t<decltype(config->fuelLevelValues)>;
|
||||
|
@ -31,4 +30,3 @@ void initFuelLevel() {
|
|||
AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 0.05f);
|
||||
fuelSensor.Register();
|
||||
}
|
||||
#endif // ! EFI_UNIT_TEST
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
static FunctionalSensor maf (SensorType::Maf , /* timeout = */ MS2NT(50));
|
||||
static FunctionalSensor maf2(SensorType::Maf2, /* timeout = */ MS2NT(50));
|
||||
|
||||
#if !EFI_UNIT_TEST
|
||||
|
||||
// extract the type of the elements in the bin/value arrays
|
||||
using BinType = std::remove_extent_t<decltype(config->mafDecodingBins)>;
|
||||
using ValueType = std::remove_extent_t<decltype(config->mafDecoding)>;
|
||||
|
@ -31,4 +31,3 @@ void initMaf() {
|
|||
initMaf(engineConfiguration->mafAdcChannel, maf);
|
||||
initMaf(engineConfiguration->maf2AdcChannel, maf2);
|
||||
}
|
||||
#endif // ! EFI_UNIT_TEST
|
||||
|
|
|
@ -123,10 +123,8 @@ void initNewSensors() {
|
|||
initEgt();
|
||||
initBaro();
|
||||
|
||||
#if !EFI_UNIT_TEST
|
||||
initFuelLevel();
|
||||
initMaf();
|
||||
#endif
|
||||
initFuelLevel();
|
||||
initMaf();
|
||||
|
||||
initOldAnalogInputs();
|
||||
initAuxDigital();
|
||||
|
|
Loading…
Reference in New Issue