Some improvement on mrcrsch's RF24 library
Fork of RF24_fork by
Diff: RF24.cpp
- Revision:
- 13:d295c8b3f742
- Parent:
- 10:0a3f44454ee7
--- a/RF24.cpp Sat Apr 22 10:52:01 2017 +0000 +++ b/RF24.cpp Wed Sep 19 22:50:11 2018 +0000 @@ -1315,3 +1315,11 @@ write_register(SETUP_RETR,(delay&0xf)<<ARD | (count&0xf)<<ARC); } +/****************************************************************************/ +bool RF24::isChipConnected() +{ + uint8_t setup = read_register(SETUP_AW); + if(setup >= 1 && setup <= 3) return true; + + return false; +} \ No newline at end of file