mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Loop using correct length
This commit is contained in:
@@ -62,7 +62,7 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
|
|||||||
m_incomingRFAudio.getData(bufferData, bufferLength);
|
m_incomingRFAudio.getData(bufferData, bufferLength);
|
||||||
|
|
||||||
// Unpack the serial data into float values.
|
// Unpack the serial data into float values.
|
||||||
for (unsigned int i = 0U; i < length; i += 3U) {
|
for (unsigned int i = 0U; i < bufferLength; i += 3U) {
|
||||||
unsigned short sample1 = 0U;
|
unsigned short sample1 = 0U;
|
||||||
unsigned short sample2 = 0U;
|
unsigned short sample2 = 0U;
|
||||||
unsigned int MASK = 0x00000FFFU;
|
unsigned int MASK = 0x00000FFFU;
|
||||||
|
|||||||
Reference in New Issue
Block a user