Skip to content

Commit

Permalink
Fix for Band Reqions not Saved df8oe#1859
Browse files Browse the repository at this point in the history
  • Loading branch information
db4ple committed Dec 22, 2020
1 parent 528aa18 commit 75fabfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mchf-eclipse/drivers/ui/ui_configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ const ConfigEntryDescriptor ConfigEntryInfo[] =
{ ConfigEntry_UInt8, EEPROM_VSWR_PROTECTION_THRESHOLD,&ts.vswr_protection_threshold,1,1,10},
{ ConfigEntry_UInt16, EEPROM_EXPFLAGS1,&ts.expflags1,EXPFLAGS1_CONFIG_DEFAULT,0,0xffff},
{ ConfigEntry_UInt16, EEPROM_CW_DECODER_FLAGS,&cw_decoder_config.flags,CW_DECODER_FLAGS_DEFAULT,0,0x7fff},
{ ConfigEntry_UInt8, EEPROM_BAND_REGION,&bandinfo_idx,0,0,0x7f},

// the entry below MUST be the last entry, and only at the last position Stop is allowed
{
Expand Down
3 changes: 2 additions & 1 deletion mchf-eclipse/drivers/ui/ui_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,8 @@ uint16_t UiConfiguration_SaveEepromValues(void);
#define EEPROM_XVERTER_OFFSET_TX_HIGH 428 // Secondary frequency by which the display is offset for transverter use, high word
#define EEPROM_XVERTER_OFFSET_TX_LOW 429 // Secondary frequency by which the display is offset for transverter use, low word
#define EEPROM_CW_DECODER_FLAGS 430 // Various flags controlling operation of CW decoder
#define EEPROM_FIRST_UNUSED 431 // change this if new value ids are introduced, must be correct at any time
#define EEPROM_BAND_REGION 431 // store which region the TRX is being used in
#define EEPROM_FIRST_UNUSED 432 // change this if new value ids are introduced, must be correct at any time

#define MAX_VAR_ADDR (EEPROM_FIRST_UNUSED - 1)

Expand Down

0 comments on commit 75fabfc

Please sign in to comment.