nuttx-apps/examples/nrf24l01_term
Old-Ding 7fa0767e30 examples: nrf24l01_term: reserve RX terminator
read_pkt() terminates the received payload with buff[ret], but a full-size read can leave no room for that trailing NUL byte.

Limit the read length to one byte less than the buffer size so the received payload remains safely terminated before it is printed.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:30:49 +08:00
..
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig apps/: Modification to build system: Unified application compilation rules 2018-09-03 09:29:56 -06: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_term.c examples: nrf24l01_term: reserve RX terminator 2026-07-09 09:30:49 +08:00