mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-04-01 16:57:23 +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) {
|
void MAIN_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) {
|
||||||
|
last_rx_vfo = -1;
|
||||||
#ifdef ENABLE_FMRADIO
|
#ifdef ENABLE_FMRADIO
|
||||||
if (gFmRadioMode && Key != KEY_PTT && Key != KEY_EXIT)
|
if (gFmRadioMode && Key != KEY_PTT && Key != KEY_EXIT)
|
||||||
{
|
{
|
||||||
|
|
2
misc.c
2
misc.c
|
@ -19,6 +19,8 @@
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
|
unsigned int last_rx_vfo = -1;
|
||||||
|
|
||||||
const uint8_t fm_radio_countdown_500ms = 2000 / 500; // 2 seconds
|
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_scan_10ms = 100 / 10; // 100ms
|
||||||
const uint16_t fm_play_countdown_noscan_10ms = 1200 / 10; // 1.2 seconds
|
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
|
#endif
|
||||||
|
extern unsigned int last_rx_vfo;
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
|
||||||
center_line_t center_line = CENTER_LINE_NONE;
|
center_line_t center_line = CENTER_LINE_NONE;
|
||||||
unsigned int last_rx_vfo = -1;
|
|
||||||
|
|
||||||
const int8_t dBmCorrTable[7] = {
|
const int8_t dBmCorrTable[7] = {
|
||||||
-15, // band 1
|
-15, // band 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue