1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

build error

This commit is contained in:
Alexander van Saase 2021-05-22 22:36:39 +02:00
parent bdd4e1315f
commit b2dd7eec6d

View file

@ -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;