Skip to content

Commit

Permalink
no need to guard this against tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 26, 2024
1 parent 2c7a902 commit 021567e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions firmware/init/sensor/init_fuel_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
Expand All @@ -27,4 +26,3 @@ void initFuelLevel() {
AdcSubscription::SubscribeSensor(fuelSensor, channel, /*lowpassCutoff =*/ 0.05f);
fuelSensor.Register();
}
#endif // ! EFI_UNIT_TEST
6 changes: 2 additions & 4 deletions firmware/init/sensor/init_sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ void initNewSensors() {
initBaro();
initAuxSpeedSensors();

#if !EFI_UNIT_TEST
initFuelLevel();
initMaf();
#endif
initFuelLevel();
initMaf();

initAuxDigital();

Expand Down

0 comments on commit 021567e

Please sign in to comment.