nuttx-apps/examples/nrf24l01_btle
Old-Ding 13f04f65b1 examples: nrf24l01_btle: Fix RX terminator bounds
nrf24_read() reads up to the nRF24L01 maximum payload length and then appends a NUL terminator for the receive buffer. A full 32-byte payload can therefore write one byte past the local rbuf[32].

Reserve one extra byte for the terminator while keeping the read length capped at NRF24L01_MAX_PAYLOAD_LEN. Dump the number of bytes actually received in the debug path.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:28:21 +08:00
..
CMakeLists.txt
Kconfig
Make.defs
Makefile
nrf24l01_btle.c examples: nrf24l01_btle: Fix RX terminator bounds 2026-07-09 09:28:21 +08:00
nrf24l01_btle.h