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: NRF24_master_slave NRF24_master_slave
Revision 5:aaff7f374e2b, committed 2015-02-09
- Comitter:
- olympux
- Date:
- Mon Feb 09 00:01:47 2015 +0000
- Parent:
- 4:baf3b07be1a7
- Commit message:
- clean code
Changed in this revision
| README.md | Show annotated file Show diff for this revision Revisions of this file |
| RF24.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/README.md Thu Feb 05 01:24:17 2015 +0000 +++ b/README.md Mon Feb 09 00:01:47 2015 +0000 @@ -11,4 +11,4 @@ ----------- - Ported from maniacbug's code. -- Fixed **available(pipe)** with tmr20h's code. \ No newline at end of file +- Fixed **available(pipe)** with tmrh20's code. \ No newline at end of file
--- a/RF24.cpp Thu Feb 05 01:24:17 2015 +0000
+++ b/RF24.cpp Mon Feb 09 00:01:47 2015 +0000
@@ -565,7 +565,7 @@
bool RF24::available(uint8_t* pipe_num)
{
- // tmr20h's code
+ // tmrh20's code
if (!( read_register(FIFO_STATUS) & _BV(RX_EMPTY) )) {
// If the caller wants the pipe number, include that
@@ -576,10 +576,10 @@
return 1;
}
-
return 0;
- /* // Maniacbug's code
+ /*
+ // Maniacbug's code
uint8_t status = get_status();
// Too noisy, enable if you really want lots o data!!