Merge pull request #6292 from DieHertz/bfdev-hertz-frhub-escsensor-data-warning

Ensured telemetry data is initialized if ESC sensor is unavailable
This commit is contained in:
Michael Keller 2018-07-06 22:31:08 +12:00 committed by GitHub
commit ad975d3948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {