1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 15:25:29 +03:00

Added blinking to LQ

Based on regular RSSI alarm number
This commit is contained in:
OptimusTi 2020-09-09 19:57:50 -04:00
parent b0c0b5110c
commit cb9364c207

View file

@ -1656,7 +1656,9 @@ static bool osdDrawSingleElement(uint8_t item)
tfp_sprintf(buff + 1, "%d:%3d%s", rxLinkStatistics.rfMode, rxLinkStatistics.uplinkLQ, "%");
if (!failsafeIsReceivingRxData()){
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
}
} else if (rxLinkStatistics.uplinkLQ < osdConfig()->rssi_alarm) {
TEXT_ATTRIBUTES_ADD_BLINK(elemAttr);
}
break;
case OSD_CRSF_SNR_DB: {
@ -1673,7 +1675,7 @@ static bool osdDrawSingleElement(uint8_t item)
tfp_sprintf(buff + 1, "%s%c", showsnr, SYM_DB);
} else {
buff[0] = SYM_BLANK;
tfp_sprintf(buff + 1, "%s%c", hidesnr);
tfp_sprintf(buff + 1, "%s%c", hidesnr, SYM_BLANK);
}
}
break;