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

Added RSSI dBM, S meter and bar graph meter compile option

This commit is contained in:
OneOfEleven
2023-09-29 08:43:05 +01:00
parent 895d83e9bc
commit 9f9b4ddc85
14 changed files with 193 additions and 225 deletions

View File

@ -59,7 +59,6 @@
#include "ui/inputbox.h"
#include "ui/main.h"
#include "ui/menu.h"
#include "ui/rssi.h"
#include "ui/status.h"
#include "ui/ui.h"
@ -79,6 +78,7 @@ static void updateRSSI(const int vfo)
return; // no change
gCurrentRSSI[vfo] = rssi;
// gCurrentRSSI[vfo] = (gCurrentRSSI[vfo] + rssi) / 2;
UI_UpdateRSSI(rssi, vfo);
}
@ -2305,7 +2305,7 @@ Skip:
{
SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_CHANNEL, gTxVfo, gRequestSaveChannel);
if (gScreenToDisplay != DISPLAY_SCANNER)
if (gVfoConfigureMode == VFO_CONFIGURE_NONE)
if (gVfoConfigureMode == VFO_CONFIGURE_NONE) // 'if' is so as we don't wipe out previously setting this variable elsewhere
gVfoConfigureMode = VFO_CONFIGURE;
}
else

View File

@ -40,7 +40,7 @@ uint8_t gDTMF_WriteIndex = 0;
uint8_t gDTMF_PreviousIndex = 0;
uint8_t gDTMF_RecvTimeout = 0;
char gDTMF_ReceivedSaved[17];
char gDTMF_ReceivedSaved[20];
uint8_t gDTMF_RecvTimeoutSaved = 0;
bool gIsDtmfContactValid;

View File

@ -63,7 +63,7 @@ extern uint8_t gDTMF_WriteIndex;
extern uint8_t gDTMF_PreviousIndex;
extern uint8_t gDTMF_RecvTimeout;
extern char gDTMF_ReceivedSaved[17];
extern char gDTMF_ReceivedSaved[20];
extern uint8_t gDTMF_RecvTimeoutSaved;
extern bool gIsDtmfContactValid;

View File

@ -432,7 +432,7 @@ void MENU_AcceptSetting(void)
{ // trailing trim
for (int i = 9; i >= 0; i--)
{
if (edit[i] != ' ' && edit[i] != '_' && edit[i] != 0 && edit[i] != 0xff)
if (edit[i] != ' ' && edit[i] != '_' && edit[i] != 0x00 && edit[i] != 0xff)
break;
edit[i] = ' ';
}
@ -455,7 +455,7 @@ void MENU_AcceptSetting(void)
gEeprom.VOX_LEVEL = gSubMenuSelection - 1;
BOARD_EEPROM_LoadMoreSettings();
gFlagReconfigureVfos = true;
gUpdateStatus = true;
gUpdateStatus = true;
break;
case MENU_ABR: