mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
added blink to LQ when telemetry is lost
Also added one space to clear SNR for when -30dB is received.
This commit is contained in:
parent
2d81adaebc
commit
09e2c5aa8f
1 changed files with 4 additions and 4 deletions
|
@ -1654,13 +1654,13 @@ static bool osdDrawSingleElement(uint8_t item)
|
||||||
case OSD_CRSF_LQ:
|
case OSD_CRSF_LQ:
|
||||||
buff[0] = SYM_BLANK;
|
buff[0] = SYM_BLANK;
|
||||||
tfp_sprintf(buff + 1, "%d:%3d%s", rxLinkStatistics.rfMode, rxLinkStatistics.uplinkLQ, "%");
|
tfp_sprintf(buff + 1, "%d:%3d%s", rxLinkStatistics.rfMode, rxLinkStatistics.uplinkLQ, "%");
|
||||||
if (!failsafeIsReceivingRxData()){
|
if (!failsafeIsReceivingRxData()){
|
||||||
displayWrite(osdDisplayPort, elemPosX, elemPosY, " ");
|
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OSD_CRSF_SNR_DB: {
|
case OSD_CRSF_SNR_DB: {
|
||||||
const char* hidesnr = " ";
|
const char* hidesnr = " ";
|
||||||
int16_t osdSNR_Alarm = rxLinkStatistics.uplinkSNR;
|
int16_t osdSNR_Alarm = rxLinkStatistics.uplinkSNR;
|
||||||
if (osdSNR_Alarm <= osdConfig()->snr_alarm) {
|
if (osdSNR_Alarm <= osdConfig()->snr_alarm) {
|
||||||
buff[0] = SYM_SRN;
|
buff[0] = SYM_SRN;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue