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 examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig Kconfig: Make indent consistent with TABS 2023-02-10 14:11:48 +08:00
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nrf24l01_btle.c examples: nrf24l01_btle: Fix RX terminator bounds 2026-07-09 09:28:21 +08:00
nrf24l01_btle.h include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00