Minor: set recBuf to a definite value

This commit is contained in:
Gerhard Hoffmann 2024-10-15 10:08:11 +02:00
parent 36a8f07069
commit 08bb513c7b

View File

@ -368,6 +368,9 @@ uint8_t recBuffer[FRAME_MAXLEN];
// read from "VCP":
mySerialPort->readFromSerial(Indata, recLength);
//qDebug()<<"prot: got data " << recLength;
memset(recBuffer, 0x00, sizeof(recBuffer));
if (recLength>FRAME_MAXLEN)
recLength=FRAME_MAXLEN;
for (int nn=0; nn<recLength; nn++)