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.
Fork of nRF24L01P by
Revision 1:492b467b021c, committed 2017-10-24
- Comitter:
- vceyssens3
- Date:
- Tue Oct 24 18:54:07 2017 +0000
- Parent:
- 0:8ae48233b4e4
- Commit message:
- Trying to find solution to this issue;
Changed in this revision
nRF24L01P.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8ae48233b4e4 -r 492b467b021c nRF24L01P.cpp --- a/nRF24L01P.cpp Wed Jan 19 22:59:48 2011 +0000 +++ b/nRF24L01P.cpp Tue Oct 24 18:54:07 2017 +0000 @@ -771,29 +771,29 @@ unsigned long long nRF24L01P::getTxAddress(void) { - int setupAw = getRegister(_NRF24L01P_REG_SETUP_AW) & _NRF24L01P_SETUP_AW_AW_MASK; - - int width; + //int setupAw = getRegister(_NRF24L01P_REG_SETUP_AW) & _NRF24L01P_SETUP_AW_AW_MASK; - switch ( setupAw ) { - - case _NRF24L01P_SETUP_AW_AW_3BYTE: - width = 3; - break; + int width = 4; - case _NRF24L01P_SETUP_AW_AW_4BYTE: - width = 4; - break; + //switch ( setupAw ) { +// + // case _NRF24L01P_SETUP_AW_AW_3BYTE: + // width = 3; + // break; +// + // case _NRF24L01P_SETUP_AW_AW_4BYTE: + // width = 4; + // break; +// + // case _NRF24L01P_SETUP_AW_AW_5BYTE: + // width = 5; + // break; - case _NRF24L01P_SETUP_AW_AW_5BYTE: - width = 5; - break; + //default: + // error( "nRF24L01P: Unknown getTxAddress width value %d\r\n", setupAw ); + //return 0; - default: - error( "nRF24L01P: Unknown getTxAddress width value %d\r\n", setupAw ); - return 0; - - } + //} int cn = (_NRF24L01P_SPI_CMD_RD_REG | (_NRF24L01P_REG_TX_ADDR & _NRF24L01P_REG_ADDRESS_MASK));