mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Ensured telemetry data is initialized if ESC sensor is unavailable
This commit is contained in:
parent
435f747d01
commit
176e5df3aa
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ static void sendAccel(void)
|
|||
|
||||
static void sendThrottleOrBatterySizeAsRpm(void)
|
||||
{
|
||||
int16_t data;
|
||||
int16_t data = 0;
|
||||
#if defined(USE_ESC_SENSOR)
|
||||
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
||||
if (escData) {
|
||||
|
@ -207,7 +207,7 @@ static void sendThrottleOrBatterySizeAsRpm(void)
|
|||
|
||||
static void sendTemperature1(void)
|
||||
{
|
||||
int16_t data;
|
||||
int16_t data = 0;
|
||||
#if defined(USE_ESC_SENSOR)
|
||||
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
||||
if (escData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue