mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 09:16:01 +03:00
build error
This commit is contained in:
parent
bdd4e1315f
commit
b2dd7eec6d
1 changed files with 4 additions and 2 deletions
|
@ -1894,13 +1894,15 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
int8_t snrFiltered = pt1FilterApply4(&snrFilterState, rxLinkStatistics.uplinkSNR, 0.5f, MS2S(millis() - snrUpdated));
|
||||
snrUpdated = millis();
|
||||
|
||||
const char* showsnr = "-20";
|
||||
const char* hidesnr = " ";
|
||||
if (snrFiltered > osdConfig()->snr_alarm) {
|
||||
if (cmsInMenu) {
|
||||
buff[0] = SYM_SNR;
|
||||
tfp_sprintf(buff + 1, "%s%c", '-20', SYM_DB);
|
||||
tfp_sprintf(buff + 1, "%s%c", showsnr, SYM_DB);
|
||||
} else {
|
||||
buff[0] = SYM_BLANK;
|
||||
tfp_sprintf(buff + 1, "%s%c", ' ', SYM_BLANK);
|
||||
tfp_sprintf(buff + 1, "%s%c", hidesnr, SYM_BLANK);
|
||||
}
|
||||
} else if (snrFiltered <= osdConfig()->snr_alarm) {
|
||||
buff[0] = SYM_SNR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue