support for auto ACK and retransmissions added

Dependents:   JNP3_IOT_6_RADIO_ECHO_FIXED nRF24L01P_NET_GW nRF24L01P_NET_SENSOR Kubus ... more

Fork of nRF24L01P by Owen Edwards

Files at this revision

API Documentation at this revision

Comitter:
jackmax
Date:
Thu Jan 12 12:22:06 2017 +0000
Parent:
2:3012f09dfcc2
Child:
5:92d0bd6eade7
Commit message:
Fixed bug: radio would be readable but read would return -1.

Changed in this revision

nRF24L01P.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF24L01P.cpp	Wed Jan 04 10:58:27 2017 +0000
+++ b/nRF24L01P.cpp	Thu Jan 12 12:22:06 2017 +0000
@@ -946,7 +946,7 @@
 
         int status = spi_.write(_NRF24L01P_SPI_CMD_R_RX_PL_WID);
 
-        int rxPayloadWidth = spi_.write(_NRF24L01P_SPI_CMD_NOP);
+        int rxPayloadWidth = spi_.write(_NRF24L01P_SPI_CMD_NOP) & 0xFF;
         
         nCS_ = 1;