mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-05-03 16:51:25 +03:00
Fix ENABLE_KEEP_MEM_NAME stuff
This commit is contained in:
parent
aafc93c2ee
commit
e0aa1a83be
2
Makefile
2
Makefile
@ -203,7 +203,7 @@ ifeq ($(ENABLE_TX1750),1)
|
|||||||
CFLAGS += -DENABLE_TX1750
|
CFLAGS += -DENABLE_TX1750
|
||||||
endif
|
endif
|
||||||
ifeq ($(ENABLE_KEEP_MEM_NAME),1)
|
ifeq ($(ENABLE_KEEP_MEM_NAME),1)
|
||||||
CFLAGS += -DKEEP_MEM_NAME
|
CFLAGS += -DENABLE_KEEP_MEM_NAME
|
||||||
endif
|
endif
|
||||||
ifeq ($(ENABLE_WIDE_RX),1)
|
ifeq ($(ENABLE_WIDE_RX),1)
|
||||||
CFLAGS += -DENABLE_WIDE_RX
|
CFLAGS += -DENABLE_WIDE_RX
|
||||||
|
@ -726,7 +726,7 @@ void MENU_AcceptSetting(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MENU_F_CALI:
|
case MENU_F_CALI:
|
||||||
if (gF_LOCK)
|
//if (gF_LOCK)
|
||||||
writeXtalFreqCal(gSubMenuSelection);
|
writeXtalFreqCal(gSubMenuSelection);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
@ -223,7 +223,7 @@ void SETTINGS_SaveChannel(uint8_t Channel, uint8_t VFO, const VFO_Info_t *pVFO,
|
|||||||
|
|
||||||
if (IS_MR_CHANNEL(Channel))
|
if (IS_MR_CHANNEL(Channel))
|
||||||
{
|
{
|
||||||
#ifndef KEEP_MEM_NAME
|
#ifndef ENABLE_KEEP_MEM_NAME
|
||||||
// clear/reset the channel name
|
// clear/reset the channel name
|
||||||
//memset(&State, 0xFF, sizeof(State));
|
//memset(&State, 0xFF, sizeof(State));
|
||||||
memset(&State, 0x00, sizeof(State)); // follow the QS way
|
memset(&State, 0x00, sizeof(State)); // follow the QS way
|
||||||
@ -277,7 +277,7 @@ void SETTINGS_UpdateChannel(uint8_t Channel, const VFO_Info_t *pVFO, bool keep)
|
|||||||
|
|
||||||
gMR_ChannelAttributes[Channel] = Attributes;
|
gMR_ChannelAttributes[Channel] = Attributes;
|
||||||
|
|
||||||
// #ifndef KEEP_MEM_NAME
|
// #ifndef ENABLE_KEEP_MEM_NAME
|
||||||
if (IS_MR_CHANNEL(Channel))
|
if (IS_MR_CHANNEL(Channel))
|
||||||
{
|
{
|
||||||
const uint16_t OffsetMR = Channel * 16;
|
const uint16_t OffsetMR = Channel * 16;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user