mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Fixed CRSF RF mode indication on link loss.
This commit is contained in:
parent
6ed4c0fbee
commit
0062bc4100
2 changed files with 8 additions and 1 deletions
|
@ -214,7 +214,6 @@ static void crsfCheckRssi(uint32_t currentTimeUs) {
|
||||||
#ifdef USE_RX_LINK_QUALITY_INFO
|
#ifdef USE_RX_LINK_QUALITY_INFO
|
||||||
if (linkQualitySource == LQ_SOURCE_RX_PROTOCOL_CRSF) {
|
if (linkQualitySource == LQ_SOURCE_RX_PROTOCOL_CRSF) {
|
||||||
setLinkQualityDirect(0);
|
setLinkQualityDirect(0);
|
||||||
rxSetRfMode(0);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,14 @@
|
||||||
#define CRSF_SNR_MIN (-30)
|
#define CRSF_SNR_MIN (-30)
|
||||||
#define CRSF_SNR_MAX 20
|
#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 {
|
typedef struct crsfFrameDef_s {
|
||||||
uint8_t deviceAddress;
|
uint8_t deviceAddress;
|
||||||
uint8_t frameLength;
|
uint8_t frameLength;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue