1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Cleaned up handling of RSSI, added resetting to 0 for RSSI over MSP.

This commit is contained in:
mikeller 2017-11-11 16:13:37 +13:00
parent 0c84506336
commit c6b88e5d04
13 changed files with 67 additions and 46 deletions

View file

@ -298,7 +298,6 @@ uint16_t flightModeFlags = 0;
float rcCommand[4];
int16_t rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT];
uint32_t rcModeActivationMask;
uint16_t rssi = 0;
gpsSolutionData_t gpsSol;
batteryState_e getBatteryState(void) {
@ -384,4 +383,6 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {};
bool isArmingDisabled(void) { return false; }
uint16_t getRssi(void) { return 0; }
}

View file

@ -932,4 +932,6 @@ extern "C" {
bool cmsDisplayPortRegister(displayPort_t *) {
return false;
}
uint16_t getRssi(void) { return rssi; }
}