优化小圆点的显示逻辑

This commit is contained in:
Silent YANG 2024-01-23 04:07:20 -08:00
parent 83dbbabcee
commit 23202900df
4 changed files with 4 additions and 1 deletions

View File

@ -708,6 +708,7 @@ static void MAIN_Key_UP_DOWN(bool bKeyPressed, bool bKeyHeld, int8_t Direction)
}
void MAIN_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) {
last_rx_vfo = -1;
#ifdef ENABLE_FMRADIO
if (gFmRadioMode && Key != KEY_PTT && Key != KEY_EXIT)
{

2
misc.c
View File

@ -19,6 +19,8 @@
#include "misc.h"
#include "settings.h"
unsigned int last_rx_vfo = -1;
const uint8_t fm_radio_countdown_500ms = 2000 / 500; // 2 seconds
const uint16_t fm_play_countdown_scan_10ms = 100 / 10; // 100ms
const uint16_t fm_play_countdown_noscan_10ms = 1200 / 10; // 1.2 seconds

1
misc.h
View File

@ -337,3 +337,4 @@ inline bool SerialConfigInProgress() { return gSerialConfigCountDown_500ms != 0;
#endif
extern unsigned int last_rx_vfo;

View File

@ -41,7 +41,6 @@
#include "ui/ui.h"
center_line_t center_line = CENTER_LINE_NONE;
unsigned int last_rx_vfo = -1;
const int8_t dBmCorrTable[7] = {
-15, // band 1