Fix the DMR SHort LC? and switch debugging off.

This commit is contained in:
Jonathan Naylor 2016-02-28 21:18:38 +00:00
parent b5b1837428
commit 14170df4c3
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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;
}