summaryrefslogtreecommitdiff
path: root/src/app/nrf24l01test
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-06-25 14:16:53 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-06-25 14:16:53 +0200
commite50587344e4977fcc04c04df53caee9b6ebf85f6 (patch)
tree6330470ac71f2678294f475c38a7a9dc4547904f /src/app/nrf24l01test
parentf0ad73ff8fe391d2aac4bc437128618647d46b4f (diff)
RF24: toggles, add setPayloadSize
Diffstat (limited to 'src/app/nrf24l01test')
-rw-r--r--src/app/nrf24l01test/main.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/app/nrf24l01test/main.cc b/src/app/nrf24l01test/main.cc
index 187a9c1..9dddb58 100644
--- a/src/app/nrf24l01test/main.cc
+++ b/src/app/nrf24l01test/main.cc
@@ -35,12 +35,12 @@ void loop(void)
kout << "write: ";
nrf24l01.setRetries(0, 0);
- nrf24l01.enableDynamicPayloads();
- nrf24l01.enableDynamicAck();
- TIMEIT("blocking write(3)", nrf24l01.write("foo", 3, false, true));
- TIMEIT("blocking write(10)", nrf24l01.write("123456789", 10, false, true));
- TIMEIT("blocking write(20)", nrf24l01.write("123456789123456789", 20, false, true));
- TIMEIT("blocking write(30)", nrf24l01.write("123456789123456789123456789", 30, false, true));
+ nrf24l01.enableDynamicPayloads(false);
+ nrf24l01.enableDynamicAck(false);
+ TIMEIT("blocking write(3)", nrf24l01.write("foo", 3, true, true));
+ TIMEIT("blocking write(10)", nrf24l01.write("123456789", 10, true, true));
+ TIMEIT("blocking write(20)", nrf24l01.write("123456789123456789", 20, true, true));
+ //TIMEIT("blocking write(30)", nrf24l01.write("123456789123456789123456789", 30, true, true));
nrf24l01.startListening();
arch.delay_ms(10);
nrf24l01.stopListening();