mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
AM fix update, RSSI bar graphs now include gain compensation
This commit is contained in:
@ -393,17 +393,17 @@ void UI_DisplayMain(void)
|
||||
// dBm
|
||||
//
|
||||
// this doesn't yet quite fit into the available screen space
|
||||
const uint16_t rssi = gVFO_RSSI[vfo_num];
|
||||
const int16_t rssi = gVFO_RSSI[vfo_num];
|
||||
if (rssi > 0)
|
||||
{
|
||||
const int16_t dBm = (int16_t)(rssi / 2) - 160;
|
||||
const int16_t dBm = (rssi / 2) - 160;
|
||||
sprintf(String, "%-3d", dBm);
|
||||
UI_PrintStringSmall(String, 2, 0, Line + 2);
|
||||
}
|
||||
#else
|
||||
// bar graph
|
||||
if (gVFO_RSSI_Level[vfo_num] > 0)
|
||||
Level = gVFO_RSSI_Level[vfo_num];
|
||||
if (gVFO_RSSI_bar_level[vfo_num] > 0)
|
||||
Level = gVFO_RSSI_bar_level[vfo_num];
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user