From e50587344e4977fcc04c04df53caee9b6ebf85f6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 25 Jun 2019 14:16:53 +0200 Subject: RF24: toggles, add setPayloadSize --- include/driver/nrf24l01.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/driver') diff --git a/include/driver/nrf24l01.h b/include/driver/nrf24l01.h index 82297bd..ae88640 100644 --- a/include/driver/nrf24l01.h +++ b/include/driver/nrf24l01.h @@ -271,12 +271,16 @@ public: * * This way you don't always have to send large packets just to send them * once in a while. This enables dynamic payloads on ALL pipes. + * + * @param enable desired DynamicPayloads status * */ - void enableDynamicPayloads(void); + void enableDynamicPayloads(bool enabled); /** * Enable dynamic ACKs (single write multicast or unicast) for chosen messages + * + * @param enable desired DynamicAck status * * @note To enable full multicast or per-pipe multicast, use setAutoAck() * @@ -287,7 +291,7 @@ public: * radio.write(&data,32,0); // Sends a payload using auto-retry/autoACK * @endcode */ - void enableDynamicAck(); + void enableDynamicAck(bool enabled); /** * Be sure to call openWritingPipe() first to set the destination -- cgit v1.2.3