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
Revision 6:5c0431c2ed79, committed 2017-11-06
- Comitter:
- ttajmajer
- Date:
- Mon Nov 06 08:43:40 2017 +0000
- Parent:
- 5:92d0bd6eade7
- Child:
- 7:434a1c2ff406
- Commit message:
- cleanup
Changed in this revision
| nRF24L01P.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF24L01P.cpp Thu Jan 19 08:58:07 2017 +0000
+++ b/nRF24L01P.cpp Mon Nov 06 08:43:40 2017 +0000
@@ -892,8 +892,6 @@
int nRF24L01P::write(int pipe, char *data, int count) {
- Timer timeout;
-
// Note: the pipe number is ignored in a Transmit / write
//
@@ -928,12 +926,9 @@
wait_us(_NRF24L01P_TIMING_Thce_us);
disable();
- //timeout.start();
while ( !( getStatusRegister() & (_NRF24L01P_STATUS_TX_DS | _NRF24L01P_STATUS_MAX_RT) ) ) {
}
- //timeout.stop();
- //timeout.reset();
if(getStatusRegister() & _NRF24L01P_STATUS_MAX_RT)
count = -1;
