From 23df73eeb7deb7dccb4a155295ceae1b6295d061 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 26 Jul 2019 15:45:15 +0200 Subject: nrf24l01 driver: Explicitly enable AutoAck on setup() --- src/driver/nrf24l01.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/driver/nrf24l01.cc b/src/driver/nrf24l01.cc index 9433534..ab7f9a2 100644 --- a/src/driver/nrf24l01.cc +++ b/src/driver/nrf24l01.cc @@ -51,6 +51,9 @@ void Nrf24l01::setup() setDataRate(RF24_1MBPS); + // Reset value is "enabled on all pipes" + setAutoAck(1); + toggleFeatures(); writeRegister(FEATURE, 0); writeRegister(DYNPD, 0); @@ -589,4 +592,4 @@ uint8_t Nrf24l01::flushTx(void) return rxbuf[0]; } -Nrf24l01 nrf24l01; \ No newline at end of file +Nrf24l01 nrf24l01; -- cgit v1.2.3