1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #9592 from mikeller/fix_crsf_rf_mode

Fixed CRSF RF mode indication on link loss.
This commit is contained in:
Michael Keller 2020-03-16 18:02:51 +13:00 committed by GitHub
commit 69e1f6c8c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;