Return control buffer initialisation to previous.

This commit is contained in:
Jonathan Naylor 2016-03-24 12:55:48 +00:00
parent dee0020e11
commit 65c639a3c5
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ void CDMRTX::writeByte(uint8_t c, uint8_t control)
uint16_t blockSize = DMR_RADIO_SYMBOL_LENGTH * 4U; uint16_t blockSize = DMR_RADIO_SYMBOL_LENGTH * 4U;
uint8_t controlBuffer[DMR_RADIO_SYMBOL_LENGTH * 4U + 1U]; uint8_t controlBuffer[DMR_RADIO_SYMBOL_LENGTH * 4U + 1U];
::memset(controlBuffer, MARK_NONE, (DMR_RADIO_SYMBOL_LENGTH * 4U + 1U) * sizeof(uint8_t)); ::memset(controlBuffer, MARK_NONE, DMR_RADIO_SYMBOL_LENGTH * 4U * sizeof(uint8_t));
controlBuffer[DMR_RADIO_SYMBOL_LENGTH * 2U] = control; controlBuffer[DMR_RADIO_SYMBOL_LENGTH * 2U] = control;
// Handle the case of the oscillator not being accurate enough // Handle the case of the oscillator not being accurate enough