From 1311e2be797f284dbe7e16d5152baeb38d2132b7 Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sun, 3 Nov 2024 16:37:52 +0000 Subject: [PATCH] Allow snr_alarm to be set up to 99dB --- docs/Settings.md | 2 +- src/main/fc/settings.yaml | 2 +- src/main/io/osd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Settings.md b/docs/Settings.md index ce4ff9c1ce..f52da9c2c4 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -5178,7 +5178,7 @@ Value below which Crossfire SNR Alarm pops-up. (dB) | Default | Min | Max | | --- | --- | --- | -| 4 | -20 | 10 | +| 4 | -20 | 99 | --- diff --git a/src/main/fc/settings.yaml b/src/main/fc/settings.yaml index fd6073fa4b..f7ba8eb7bb 100644 --- a/src/main/fc/settings.yaml +++ b/src/main/fc/settings.yaml @@ -3376,7 +3376,7 @@ groups: default_value: 4 field: snr_alarm min: -20 - max: 10 + max: 99 - name: osd_link_quality_alarm condition: USE_SERIALRX_CRSF description: "LQ % indicator blinks below this value. For Crossfire use 70%, for Tracer use 50%" diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 41c20dda92..67e401f6ab 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -2535,7 +2535,7 @@ static bool osdDrawSingleElement(uint8_t item) } } else if (snrFiltered <= osdConfig()->snr_alarm) { buff[0] = SYM_SNR; - if (snrFiltered <= -10) { + if (snrFiltered <= -10 || >= 10) { tfp_sprintf(buff + 1, "%3d%c", snrFiltered, SYM_DB); } else { tfp_sprintf(buff + 1, "%2d%c%c", snrFiltered, SYM_DB, ' ');