mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
支持副信道发射
This commit is contained in:
parent
a5adfbe338
commit
604ab84c99
7 changed files with 12 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -62,7 +62,7 @@ ENABLE_AGC_SHOW_DATA ?= 0
|
||||||
ENABLE_TIMER ?= 0
|
ENABLE_TIMER ?= 0
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
PACKED_FILE_SUFFIX = LOSEHU117
|
PACKED_FILE_SUFFIX = LOSEHU117P2
|
||||||
ifeq ($(ENABLE_CHINESE_FULL),1)
|
ifeq ($(ENABLE_CHINESE_FULL),1)
|
||||||
$(info font1)
|
$(info font1)
|
||||||
PACKED_FILE_SUFFIX = font1
|
PACKED_FILE_SUFFIX = font1
|
||||||
|
|
|
@ -103,7 +103,8 @@ void (*action_opt_table[])(void) = {
|
||||||
[ACTION_OPT_WIDTH] = &ACTION_WIDTH,
|
[ACTION_OPT_WIDTH] = &ACTION_WIDTH,
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
[ACTION_OPT_SEND_A] = &ACTION_SEND_A,
|
[ACTION_OPT_SEND_A] = &ACTION_SEND_A,
|
||||||
[ACTION_OPT_SEND_B] = &ACTION_SEND_B
|
[ACTION_OPT_SEND_B] = &ACTION_SEND_B,
|
||||||
|
[ACTION_OPT_SEND_OTHER] = &ACTION_SEND_OTHER
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -330,9 +331,9 @@ void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||||
funcShort = funcLong;
|
funcShort = funcLong;
|
||||||
|
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
if(funcShort == ACTION_OPT_SEND_A || funcShort == ACTION_OPT_SEND_B){
|
if(funcShort == ACTION_OPT_SEND_A || funcShort == ACTION_OPT_SEND_B || funcShort == ACTION_OPT_SEND_OTHER){
|
||||||
gFlagLastVfo = gEeprom.TX_VFO;
|
gFlagLastVfo = gEeprom.TX_VFO;
|
||||||
gEeprom.TX_VFO = funcShort == ACTION_OPT_SEND_A ? 0 : 1;
|
gEeprom.TX_VFO = funcShort == ACTION_OPT_SEND_OTHER ? !gFlagLastVfo : funcShort == ACTION_OPT_SEND_A ? 0 : 1;
|
||||||
gFlagReconfigureVfos = true;
|
gFlagReconfigureVfos = true;
|
||||||
gFlagStopTX = true;
|
gFlagStopTX = true;
|
||||||
GENERIC_Key_PTT(bKeyPressed);
|
GENERIC_Key_PTT(bKeyPressed);
|
||||||
|
@ -564,4 +565,5 @@ void ACTION_D_DCD(void)
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
void ACTION_SEND_A(void){return;}
|
void ACTION_SEND_A(void){return;}
|
||||||
void ACTION_SEND_B(void){return;}
|
void ACTION_SEND_B(void){return;}
|
||||||
|
void ACTION_SEND_OTHER(void){return;}
|
||||||
#endif
|
#endif
|
|
@ -46,6 +46,7 @@ void ACTION_Handle(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld);
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
void ACTION_SEND_A(void);
|
void ACTION_SEND_A(void);
|
||||||
void ACTION_SEND_B(void);
|
void ACTION_SEND_B(void);
|
||||||
|
void ACTION_SEND_OTHER(void);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -374,7 +374,7 @@ int MENU_GetLimits(uint8_t menu_id, int32_t *pMin, int32_t *pMax) {
|
||||||
*pMin = 0;
|
*pMin = 0;
|
||||||
|
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
*pMax = gSubMenu_SIDEFUNCTIONS_size-3;
|
*pMax = gSubMenu_SIDEFUNCTIONS_size-4;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
*pMax =gSubMenu_SIDEFUNCTIONS_size-1;
|
*pMax =gSubMenu_SIDEFUNCTIONS_size-1;
|
||||||
|
|
|
@ -150,6 +150,7 @@
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
#define A信道发射 "A\x1C\x1D\x0E\xC8"
|
#define A信道发射 "A\x1C\x1D\x0E\xC8"
|
||||||
#define B信道发射 "B\x1C\x1D\x0E\xC8"
|
#define B信道发射 "B\x1C\x1D\x0E\xC8"
|
||||||
|
#define 副信道发射 "\xCA\x1C\x1D\x0E\xC8"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -310,6 +311,7 @@
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
#define A信道发射 "A\x89\x89\x92\xC8\x81\x9A\x8C\x89"
|
#define A信道发射 "A\x89\x89\x92\xC8\x81\x9A\x8C\x89"
|
||||||
#define B信道发射 "B\x89\x89\x92\xC8\x81\x9A\x8C\x89"
|
#define B信道发射 "B\x89\x89\x92\xC8\x81\x9A\x8C\x89"
|
||||||
|
#define 副信道发射 "\x8E\x8D\x89\x89\x92\xC8\x81\x9A\x8C\x89"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ enum ACTION_OPT_t {
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
ACTION_OPT_SEND_A,
|
ACTION_OPT_SEND_A,
|
||||||
ACTION_OPT_SEND_B,
|
ACTION_OPT_SEND_B,
|
||||||
|
ACTION_OPT_SEND_OTHER,
|
||||||
#endif
|
#endif
|
||||||
ACTION_OPT_LEN
|
ACTION_OPT_LEN
|
||||||
};
|
};
|
||||||
|
|
|
@ -482,6 +482,7 @@ const t_sidefunction SIDEFUNCTIONS[] =
|
||||||
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
#ifdef ENABLE_SIDEFUNCTIONS_SEND
|
||||||
{A信道发射, ACTION_OPT_SEND_A},
|
{A信道发射, ACTION_OPT_SEND_A},
|
||||||
{B信道发射, ACTION_OPT_SEND_B},
|
{B信道发射, ACTION_OPT_SEND_B},
|
||||||
|
{副信道发射, ACTION_OPT_SEND_OTHER},
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_BLMIN_TMP_OFF
|
#ifdef ENABLE_BLMIN_TMP_OFF
|
||||||
{"BLMIN\nTMP OFF", ACTION_OPT_BLMIN_TMP_OFF}, //BackLight Minimum Temporay OFF
|
{"BLMIN\nTMP OFF", ACTION_OPT_BLMIN_TMP_OFF}, //BackLight Minimum Temporay OFF
|
||||||
|
|
Loading…
Reference in a new issue