vBatt -> SensorType::vBatt #2260
This commit is contained in:
parent
a0a6e445dd
commit
416c65b475
|
@ -288,7 +288,7 @@ void Engine::updateSlowSensors(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
fuelLevelVoltage);
|
||||
}
|
||||
|
||||
sensors.vBatt = Sensor::get(SensorType::BatteryVoltage).value_or(12);
|
||||
sensors.vBatt = Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE);
|
||||
|
||||
#if (BOARD_TLE8888_COUNT > 0)
|
||||
// nasty value injection into C driver which would not be able to access Engine class
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
Accelerometer accelerometer;
|
||||
|
||||
// todo: remove this variable, replace with Sensor::get(SensorType::vbatt).value_or(VBAT_FALLBACK_VALUE)
|
||||
// todo: remove this variable, replace with Sensor::get(SensorType::BatteryVoltage).value_or(VBAT_FALLBACK_VALUE)
|
||||
// todo: https://github.com/rusefi/rusefi/issues/2260
|
||||
float vBatt = 0;
|
||||
/**
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define VBAT_FALLBACK_VALUE 12
|
||||
|
||||
/**
|
||||
**************************************
|
||||
* SEE sensor.h ON HOW TO ADD NEW SENSOR TYPES
|
||||
|
|
Loading…
Reference in New Issue