mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-16 00:34:12 +02:00
Fix the DMR SHort LC? and switch debugging off.
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#if !defined(CONFIG_H)
|
#if !defined(CONFIG_H)
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#define WANT_DEBUG
|
// #define WANT_DEBUG
|
||||||
|
|
||||||
// For the original Arduino Due pin layout
|
// For the original Arduino Due pin layout
|
||||||
#define ARDUINO_DUE_PAPA
|
#define ARDUINO_DUE_PAPA
|
||||||
|
|||||||
@@ -170,18 +170,18 @@ uint8_t CDMRTX::writeShortLC(const uint8_t* data, uint8_t length)
|
|||||||
|
|
||||||
::memset(m_newShortLC, 0x00U, 12U);
|
::memset(m_newShortLC, 0x00U, 12U);
|
||||||
|
|
||||||
// Set the LCSS bits
|
|
||||||
m_newShortLC[1U] = 0x08U;
|
|
||||||
m_newShortLC[4U] = 0x88U;
|
|
||||||
m_newShortLC[7U] = 0x88U;
|
|
||||||
m_newShortLC[11U] = 0x80U;
|
|
||||||
|
|
||||||
for (uint8_t i = 0U; i < 68U; i++) {
|
for (uint8_t i = 0U; i < 68U; i++) {
|
||||||
bool b = READ_BIT1(data, i);
|
bool b = READ_BIT1(data, i);
|
||||||
uint8_t n = CACH_INTERLEAVE[i];
|
uint8_t n = CACH_INTERLEAVE[i];
|
||||||
WRITE_BIT1(m_newShortLC, n, b);
|
WRITE_BIT1(m_newShortLC, n, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the LCSS bits
|
||||||
|
m_newShortLC[1U] |= 0x08U;
|
||||||
|
m_newShortLC[4U] |= 0x88U;
|
||||||
|
m_newShortLC[7U] |= 0x88U;
|
||||||
|
m_newShortLC[10U] |= 0x80U;
|
||||||
|
|
||||||
return 0U;
|
return 0U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user