Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: JNP3_IOT_6_RADIO_ECHO_FIXED2_2
Diff: nRF24L01P.cpp
- Revision:
- 6:5c0431c2ed79
- Parent:
- 5:92d0bd6eade7
- Child:
- 7:434a1c2ff406
--- 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;