Skip to content

Commit

Permalink
CF/BF - Fix warning when compiling smartport without USE_ESC_SENSOR.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Sep 29, 2018
1 parent c73ebeb commit 8a05518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/telemetry/smartport.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,11 @@ static void smartPortSendPackage(uint16_t id, uint32_t val)
smartPortWriteFrame(&payload);
}

#ifdef USE_ESC_SENSOR
static bool reportExtendedEscSensors(void) {
return feature(FEATURE_ESC_SENSOR) && telemetryConfig()->smartport_use_extra_sensors;
}
#endif

#define ADD_SENSOR(dataId) frSkyDataIdTableInfo.table[frSkyDataIdTableInfo.index++] = dataId

Expand Down

0 comments on commit 8a05518

Please sign in to comment.