From 65c639a3c56d84ec1b568bbc7587a4819849bb46 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 24 Mar 2016 12:55:48 +0000 Subject: [PATCH] Return control buffer initialisation to previous. --- DMRTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DMRTX.cpp b/DMRTX.cpp index 1588dfd..380d390 100644 --- a/DMRTX.cpp +++ b/DMRTX.cpp @@ -221,7 +221,7 @@ void CDMRTX::writeByte(uint8_t c, uint8_t control) uint16_t blockSize = DMR_RADIO_SYMBOL_LENGTH * 4U; 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; // Handle the case of the oscillator not being accurate enough