mirror of https://github.com/g4klx/MMDVM.git
Fix the DMR SHort LC? and switch debugging off.
This commit is contained in:
parent
b5b1837428
commit
14170df4c3
2
Config.h
2
Config.h
|
@ -19,7 +19,7 @@
|
|||
#if !defined(CONFIG_H)
|
||||
#define CONFIG_H
|
||||
|
||||
#define WANT_DEBUG
|
||||
// #define WANT_DEBUG
|
||||
|
||||
// For the original Arduino Due pin layout
|
||||
#define ARDUINO_DUE_PAPA
|
||||
|
|
12
DMRTX.cpp
12
DMRTX.cpp
|
@ -170,18 +170,18 @@ uint8_t CDMRTX::writeShortLC(const uint8_t* data, uint8_t length)
|
|||
|
||||
::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++) {
|
||||
bool b = READ_BIT1(data, i);
|
||||
uint8_t n = CACH_INTERLEAVE[i];
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue