no need to guard this against tests

This commit is contained in:
Matthew Kennedy 2024-09-26 16:34:43 -07:00
parent 2c7a902d39
commit 021567e12f
2 changed files with 2 additions and 6 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)>;
@ -27,4 +26,3 @@ void initFuelLevel() {
AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 0.05f);
fuelSensor.Register();
}
#endif // ! EFI_UNIT_TEST

View File

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