Minor: set recBuf to a definite value
This commit is contained in:
parent
36a8f07069
commit
08bb513c7b
@ -368,6 +368,9 @@ uint8_t recBuffer[FRAME_MAXLEN];
|
|||||||
// read from "VCP":
|
// read from "VCP":
|
||||||
mySerialPort->readFromSerial(Indata, recLength);
|
mySerialPort->readFromSerial(Indata, recLength);
|
||||||
//qDebug()<<"prot: got data " << recLength;
|
//qDebug()<<"prot: got data " << recLength;
|
||||||
|
|
||||||
|
memset(recBuffer, 0x00, sizeof(recBuffer));
|
||||||
|
|
||||||
if (recLength>FRAME_MAXLEN)
|
if (recLength>FRAME_MAXLEN)
|
||||||
recLength=FRAME_MAXLEN;
|
recLength=FRAME_MAXLEN;
|
||||||
for (int nn=0; nn<recLength; nn++)
|
for (int nn=0; nn<recLength; nn++)
|
||||||
|
Loading…
Reference in New Issue
Block a user