Remove the end '\0' add
This commit is contained in:
parent
a7a4236052
commit
fdc67e0d83
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user