mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 06:58:39 +03:00
Added 'make clean' to win_make.bat
This commit is contained in:
14
ui/main.c
14
ui/main.c
@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h> // abs()
|
||||
|
||||
#include "app/dtmf.h"
|
||||
#ifdef ENABLE_AM_FIX_SHOW_DATA
|
||||
@ -425,13 +426,12 @@ void UI_DisplayMain(void)
|
||||
// dBm
|
||||
//
|
||||
// this doesn't yet quite fit into the available screen space
|
||||
const int16_t rssi = gVFO_RSSI[vfo_num];
|
||||
if (rssi > 0)
|
||||
{
|
||||
const int16_t dBm = (rssi / 2) - 160;
|
||||
sprintf(String, "%-3d", dBm);
|
||||
UI_PrintStringSmall(String, 2, 0, Line + 2);
|
||||
}
|
||||
// I suppose the '-' sign could be dropped
|
||||
//
|
||||
const int16_t dBm = (gVFO_RSSI[vfo_num] / 2) - 160;
|
||||
sprintf(String, "%-3d", dBm);
|
||||
//sprintf(String, "%3d", abs(dBm));
|
||||
UI_PrintStringSmall(String, 2, 0, Line + 2);
|
||||
#else
|
||||
// bar graph
|
||||
if (gVFO_RSSI_bar_level[vfo_num] > 0)
|
||||
|
Reference in New Issue
Block a user