Remove the end '\0' add

This commit is contained in:
lxbpxylps@126.com 2021-10-16 10:36:09 +08:00
parent a7a4236052
commit fdc67e0d83

View File

@ -326,7 +326,7 @@ uint8_t SX1278_read(SX1278_t *module, uint8_t *rxBuf, uint8_t length)
if (length != module->readBytes)
length = module->readBytes;
memcpy(rxBuf, module->rxBuffer, length);
rxBuf[length] = '\0';
// rxBuf[length] = '\0';
module->readBytes = 0;
return length;
}