mirror of https://github.com/FOME-Tech/fome-fw.git
no need to guard this against tests
This commit is contained in:
parent
2c7a902d39
commit
021567e12f
|
@ -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
|
||||
|
|
|
@ -68,10 +68,8 @@ void initNewSensors() {
|
|||
initBaro();
|
||||
initAuxSpeedSensors();
|
||||
|
||||
#if !EFI_UNIT_TEST
|
||||
initFuelLevel();
|
||||
initMaf();
|
||||
#endif
|
||||
initFuelLevel();
|
||||
initMaf();
|
||||
|
||||
initAuxDigital();
|
||||
|
||||
|
|
Loading…
Reference in New Issue