radio echo app
Dependents: JNP3_IOT_6_RADIO_ECHO_FIXED2
Diff: nRF24L01P.cpp
- Revision:
- 3:3f6bf32d36c2
- Parent:
- 2:3012f09dfcc2
- Child:
- 5:92d0bd6eade7
--- 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;