From 99a5a7d1e4eab132b9577ee837d58468d75989d7 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 18 Feb 2020 07:35:41 +0100 Subject: [PATCH] [nRF24] Removed redundant null terminator --- src/modules/nRF24/nRF24.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/modules/nRF24/nRF24.cpp b/src/modules/nRF24/nRF24.cpp index 14f9a943..3a91862d 100644 --- a/src/modules/nRF24/nRF24.cpp +++ b/src/modules/nRF24/nRF24.cpp @@ -218,9 +218,6 @@ int16_t nRF24::readData(uint8_t* data, size_t len) { // read packet data SPIreadRxPayload(data, length); - // add terminating null - data[length] = 0; - // clear interrupt clearIRQ();