Skip to content

Commit

Permalink
Allow snr_alarm to be set up to 99dB
Browse files Browse the repository at this point in the history
  • Loading branch information
MrD-RC committed Nov 3, 2024
1 parent b5b9e58 commit 1311e2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5178,7 +5178,7 @@ Value below which Crossfire SNR Alarm pops-up. (dB)

| Default | Min | Max |
| --- | --- | --- |
| 4 | -20 | 10 |
| 4 | -20 | 99 |

---

Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down
2 changes: 1 addition & 1 deletion src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' ');
Expand Down

0 comments on commit 1311e2b

Please sign in to comment.