fix #71 all ctcss memories shifted by 1, added new ctcss codes

This commit is contained in:
Nunu 2024-01-16 10:29:57 +01:00
parent 761dc6e0c5
commit 99e9862f0e
3 changed files with 6 additions and 5 deletions

View File

@ -603,7 +603,7 @@ void BOARD_EEPROM_Init(void)
gEeprom.REPEATER_TAIL_TONE_ELIMINATION = (Data[2] < 11) ? Data[2] : 0;
gEeprom.TX_VFO = (Data[3] < 2) ? Data[3] : 0;
gEeprom.BATTERY_TYPE = (Data[4] < BATTERY_TYPE_UNKNOWN) ? Data[4] : BATTERY_TYPE_1600_MAH;
gEeprom.SQL_TONE = (Data[5] < ARRAY_SIZE(CTCSS_Options)) ? Data[5] : 0;
gEeprom.SQL_TONE = (Data[5] < ARRAY_SIZE(CTCSS_Options)) ? Data[5] : 50;
// 0ED0..0ED7
EEPROM_ReadBuffer(0x0ED0, Data, 8);
gEeprom.DTMF_SIDE_TONE = (Data[0] < 2) ? Data[0] : true;

7
dcs.c
View File

@ -21,12 +21,13 @@
#endif
// CTCSS Hz * 10
const uint16_t CTCSS_Options[51] = {
550, 670, 693, 719, 744, 770, 797, 825, 854, 885, 915,
const uint16_t CTCSS_Options[55] = {
670, 693, 719, 744, 770, 797, 825, 854, 885, 915,
948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1230, 1273,
1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679,
1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995,
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541,
550, 575, 600, 625, 650 // non standard values
};
const uint16_t DCS_Options[104] = {

2
dcs.h
View File

@ -34,7 +34,7 @@ enum {
CDCSS_NEGATIVE_CODE = 2U,
};
extern const uint16_t CTCSS_Options[51];
extern const uint16_t CTCSS_Options[55];
extern const uint16_t DCS_Options[104];
uint32_t DCS_GetGolayCodeWord(DCS_CodeType_t CodeType, uint8_t Option);