mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-03-28 21:26:22 +00:00
优化小圆点的显示逻辑
This commit is contained in:
parent
83dbbabcee
commit
23202900df
4 changed files with 4 additions and 1 deletions
|
@ -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
2
misc.c
|
@ -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
1
misc.h
|
@ -337,3 +337,4 @@ inline bool SerialConfigInProgress() { return gSerialConfigCountDown_500ms != 0;
|
|||
|
||||
|
||||
#endif
|
||||
extern unsigned int last_rx_vfo;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue