1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

add missing code

cleanup space(s)
comment 
move define define in post  add to pre
This commit is contained in:
laz2wiringpi 2019-05-21 16:40:21 -04:00
parent c1510c9f27
commit 15c25520e3
5 changed files with 7 additions and 7 deletions

View file

@ -643,8 +643,8 @@ static uint8_t osdShowStats(uint16_t endBatteryVoltage, int statsRowCount)
#ifdef USE_RX_RSSI_DBM #ifdef USE_RX_RSSI_DBM
if (osdStatGetState(OSD_STAT_MIN_RSSI_DBM)) { if (osdStatGetState(OSD_STAT_MIN_RSSI_DBM)) {
itoa(stats.min_rssi_dbm, buff, 10); tfp_sprintf(buff, "%3d", stats.min_rssi_dbm * -1);
osdDisplayStatisticLabel(top++, "MAX RSSI DBM", buff); osdDisplayStatisticLabel(top++, "MIN RSSI DBM", buff);
} }
#endif #endif

View file

@ -1008,7 +1008,7 @@ static void osdElementRtcTime(osdElementParms_t *element)
#ifdef USE_RX_RSSI_DBM #ifdef USE_RX_RSSI_DBM
static void osdElementRssiDbm(osdElementParms_t *element) static void osdElementRssiDbm(osdElementParms_t *element)
{ {
tfp_sprintf(element->buff, "%c%3d", SYM_RSSI, getRssiDbm() * -1 ); tfp_sprintf(element->buff, "%c%3d", SYM_RSSI, getRssiDbm() * -1);
} }
#endif // USE_RX_RSSI_DBM #endif // USE_RX_RSSI_DBM

View file

@ -72,7 +72,7 @@
const char rcChannelLetters[] = "AERT12345678abcdefgh"; const char rcChannelLetters[] = "AERT12345678abcdefgh";
static uint16_t rssi = 0; // range: [0;1023] static uint16_t rssi = 0; // range: [0;1023]
static uint8_t rssi_dbm = 130; // range: [0;130] static uint8_t rssi_dbm = 130; // range: [0;130] display 0 to -130
static timeUs_t lastMspRssiUpdateUs = 0; static timeUs_t lastMspRssiUpdateUs = 0;
static pt1Filter_t frameErrFilter; static pt1Filter_t frameErrFilter;
@ -788,7 +788,7 @@ void setRssiDbm(uint8_t rssiDbmValue, rssiSource_e source)
void setRssiDbmDirect(uint8_t newRssiDbm, rssiSource_e source) void setRssiDbmDirect(uint8_t newRssiDbm, rssiSource_e source)
{ {
if (source != rssiSource) { // maybe the setting ? if (source != rssiSource) {
return; return;
} }

View file

@ -94,6 +94,7 @@
#if !defined(USE_SERIALRX_CRSF) #if !defined(USE_SERIALRX_CRSF)
#undef USE_TELEMETRY_CRSF #undef USE_TELEMETRY_CRSF
#undef USE_CRSF_LINK_STATISTICS #undef USE_CRSF_LINK_STATISTICS
#undef USE_RX_RSSI_DBM
#endif #endif
#if !defined(USE_TELEMETRY_CRSF) || !defined(USE_CMS) #if !defined(USE_TELEMETRY_CRSF) || !defined(USE_CMS)

View file

@ -194,7 +194,6 @@
#define USE_MSP_DISPLAYPORT #define USE_MSP_DISPLAYPORT
#define USE_MSP_OVER_TELEMETRY #define USE_MSP_OVER_TELEMETRY
#define USE_LED_STRIP #define USE_LED_STRIP
#define USE_RX_RSSI_DBM
#endif #endif
#if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 11)) #if ((FLASH_SIZE > 256) || (FEATURE_CUT_LEVEL < 11))
@ -272,6 +271,7 @@
#define USE_ESC_SENSOR_INFO #define USE_ESC_SENSOR_INFO
#define USE_CRSF_CMS_TELEMETRY #define USE_CRSF_CMS_TELEMETRY
#define USE_CRSF_LINK_STATISTICS #define USE_CRSF_LINK_STATISTICS
#define USE_RX_RSSI_DBM
#endif #endif
#endif // FLASH_SIZE > 128 #endif // FLASH_SIZE > 128
@ -314,4 +314,3 @@
#define USE_PERSISTENT_STATS #define USE_PERSISTENT_STATS
#define USE_PROFILE_NAMES #define USE_PROFILE_NAMES
#endif #endif