mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
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:
commit
ad975d3948
1 changed files with 2 additions and 2 deletions
|
@ -183,7 +183,7 @@ static void sendAccel(void)
|
||||||
|
|
||||||
static void sendThrottleOrBatterySizeAsRpm(void)
|
static void sendThrottleOrBatterySizeAsRpm(void)
|
||||||
{
|
{
|
||||||
int16_t data;
|
int16_t data = 0;
|
||||||
#if defined(USE_ESC_SENSOR)
|
#if defined(USE_ESC_SENSOR)
|
||||||
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
||||||
if (escData) {
|
if (escData) {
|
||||||
|
@ -207,7 +207,7 @@ static void sendThrottleOrBatterySizeAsRpm(void)
|
||||||
|
|
||||||
static void sendTemperature1(void)
|
static void sendTemperature1(void)
|
||||||
{
|
{
|
||||||
int16_t data;
|
int16_t data = 0;
|
||||||
#if defined(USE_ESC_SENSOR)
|
#if defined(USE_ESC_SENSOR)
|
||||||
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
escSensorData_t *escData = getEscSensorData(ESC_SENSOR_COMBINED);
|
||||||
if (escData) {
|
if (escData) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue