mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 00:05:28 +03:00
Missed #if defined(USE_ESC_SENSOR)
This commit is contained in:
parent
ea17875244
commit
b35cb0eefb
1 changed files with 2 additions and 1 deletions
|
@ -4344,7 +4344,7 @@ static void osdUpdateStats(void)
|
|||
if (stats.max_sats < gpsSol.numSat)
|
||||
stats.max_sats = gpsSol.numSat;
|
||||
}
|
||||
|
||||
#if defined(USE_ESC_SENSOR)
|
||||
if (STATE(ESC_SENSOR_ENABLED)) {
|
||||
escSensorData_t * escSensor = escSensorGetData();
|
||||
bool escTemperatureValid = escSensor && escSensor->dataAge <= ESC_DATA_MAX_AGE;
|
||||
|
@ -4357,6 +4357,7 @@ static void osdUpdateStats(void)
|
|||
stats.max_esc_temp = escSensor->temperature;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
value = getBatteryVoltage();
|
||||
if (stats.min_voltage > value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue