1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Fixed CRSF RF mode indication on link loss.

This commit is contained in:
mikeller 2020-03-15 14:42:43 +13:00
parent 6ed4c0fbee
commit 0062bc4100
2 changed files with 8 additions and 1 deletions

View file

@ -214,7 +214,6 @@ static void crsfCheckRssi(uint32_t currentTimeUs) {
#ifdef USE_RX_LINK_QUALITY_INFO
if (linkQualitySource == LQ_SOURCE_RX_PROTOCOL_CRSF) {
setLinkQualityDirect(0);
rxSetRfMode(0);
}
#endif
}

View file

@ -33,6 +33,14 @@
#define CRSF_SNR_MIN (-30)
#define CRSF_SNR_MAX 20
/* For documentation purposes
typedef enum {
CRSF_RF_MODE_4_FPS = 0,
CRSF_RF_MODE_50_FPS,
CRSF_RF_MODE_150_FPS,
} crsfRfMode_e;
*/
typedef struct crsfFrameDef_s {
uint8_t deviceAddress;
uint8_t frameLength;