summaryrefslogtreecommitdiff
path: root/src/app/nrf24l01test
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-06-24 13:51:17 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-06-24 13:51:17 +0200
commit6bdbdaddc6d7629f51d5c12d7f3480afdf2234f5 (patch)
treed4100f944a447fdf74657f84801bcb4195a1a601 /src/app/nrf24l01test
parentdefe3e47dd837f9f2ae8447b7148893af8e8f1d0 (diff)
RF24: Add functions required for reading
Diffstat (limited to 'src/app/nrf24l01test')
-rw-r--r--src/app/nrf24l01test/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/nrf24l01test/main.cc b/src/app/nrf24l01test/main.cc
index c12cbf5..ad1bc11 100644
--- a/src/app/nrf24l01test/main.cc
+++ b/src/app/nrf24l01test/main.cc
@@ -9,6 +9,9 @@ void loop(void)
kout << "status: " << hex << nrf24l01.getStatus() << endl;
kout << "write: ";
kout << nrf24l01.write("foo", 3, true) << endl;
+ nrf24l01.startListening();
+ arch.delay_ms(10);
+ nrf24l01.stopListening();
}
int main(void)