diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-26 15:45:15 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-26 15:45:15 +0200 |
commit | 23df73eeb7deb7dccb4a155295ceae1b6295d061 (patch) | |
tree | 09f36063c4dfb834cf722711d6de9079b8597da0 | |
parent | 9ccab8015f3c481a6afbb0c7eb98c3f7d95268e3 (diff) |
nrf24l01 driver: Explicitly enable AutoAck on setup()
-rw-r--r-- | src/driver/nrf24l01.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; |