mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-05-07 13:37:48 +00:00
Fix STM32F10X compile complaining about duplicate stuff
This commit is contained in:
parent
868d33ebd2
commit
0b27ec5443
3 changed files with 14 additions and 14 deletions
|
|
@ -20,10 +20,10 @@
|
|||
#include "Globals.h"
|
||||
#include "FMCTCSSRX.h"
|
||||
|
||||
const struct CTCSS_TABLE {
|
||||
const struct RX_CTCSS_TABLE {
|
||||
uint8_t frequency;
|
||||
q63_t coeffDivTwo;
|
||||
} CTCSS_TABLE_DATA[] = {
|
||||
} RX_CTCSS_TABLE_DATA[] = {
|
||||
{ 67U, 2147153298},
|
||||
{ 69U, 2147130228},
|
||||
{ 71U, 2147103212},
|
||||
|
|
@ -93,8 +93,8 @@ m_result(CTS_NONE)
|
|||
uint8_t CFMCTCSSRX::setParams(uint8_t frequency, uint8_t threshold)
|
||||
{
|
||||
for (uint8_t i = 0U; i < CTCSS_TABLE_DATA_LEN; i++) {
|
||||
if (CTCSS_TABLE_DATA[i].frequency == frequency) {
|
||||
m_coeffDivTwo = CTCSS_TABLE_DATA[i].coeffDivTwo;
|
||||
if (RX_CTCSS_TABLE_DATA[i].frequency == frequency) {
|
||||
m_coeffDivTwo = RX_CTCSS_TABLE_DATA[i].coeffDivTwo;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue