no need to guard this against tests

This commit is contained in:
Matthew Kennedy 2024-09-26 19:21:39 -04:00 committed by Andrey
parent 2a41fbfedb
commit a920809bdd
3 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -123,10 +123,8 @@ void initNewSensors() {
initEgt();
initBaro();
#if !EFI_UNIT_TEST
initFuelLevel();
initMaf();
#endif
initFuelLevel();
initMaf();
initOldAnalogInputs();
initAuxDigital();