0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

Even easier to change 'S0' base dBm level on the s-meter.

This commit is contained in:
OneOfEleven
2023-09-30 17:14:48 +01:00
parent 9493f34c23
commit 1eac6018ba
5 changed files with 8 additions and 5 deletions

View File

@ -119,9 +119,9 @@ bool center_line_is_free = true;
#if defined(ENABLE_RSSI_BAR)
void UI_DisplayRSSIBar(const int16_t rssi, const bool now)
{
const int16_t s9_dBm = -73; // S9
const int16_t s0_dBm = -127; // S0
const int16_t s0_dBm = -127; // S0 .. base level
const int16_t s9_dBm = s0_dBm + (6 * 9); // S9 .. 6dB/S-Point
const int16_t bar_max_dBm = s9_dBm + 30; // S9+30dB
const int16_t bar_min_dBm = s0_dBm; // S0