mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 09:16:01 +03:00
Update osd.c
Changed how to check if RX data is being received for CRSF RSSI to make the reading blink if the failsafe function is not receiving RX data.
This commit is contained in:
parent
c3a338ef2c
commit
8b83c71433
1 changed files with 2 additions and 2 deletions
|
@ -1639,13 +1639,13 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
if (rxLinkStatistics.activeAnt == 0) {
|
||||
buff[0] = SYM_RSSI;
|
||||
tfp_sprintf(buff + 1, "%4d%c", rxLinkStatistics.uplinkRSSI, SYM_DBM);
|
||||
if (FLIGHT_MODE(FAILSAFE_MODE)){
|
||||
if (!failsafeIsReceivingRxData()){
|
||||
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
|
||||
}
|
||||
} else {
|
||||
buff[0] = SYM_2RSS;
|
||||
tfp_sprintf(buff + 1, "%4d%c", rxLinkStatistics.uplinkRSSI, SYM_DBM);
|
||||
if (FLIGHT_MODE(FAILSAFE_MODE)){
|
||||
if (!failsafeIsReceivingRxData()){
|
||||
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue