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: ISEN_RF24Network_Node_01 ISEN_RF24Network_Node_02
Revision 6:54b43989c9c5, committed 2021-05-20
- Comitter:
- Giamarchi
- Date:
- Thu May 20 09:26:49 2021 +0000
- Parent:
- 3:dfc8da7ac18c
- Commit message:
- no modif
Changed in this revision
RF24Network.cpp | Show annotated file Show diff for this revision Revisions of this file |
RF24Network.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/RF24Network.cpp Thu Nov 05 05:54:47 2015 +0000 +++ b/RF24Network.cpp Thu May 20 09:26:49 2021 +0000 @@ -399,7 +399,7 @@ /******************************************************************/ -uint16_t RF24Network::parent() const +int16_t RF24Network::parent() const { if ( node_address == 0 ) return -1; @@ -953,7 +953,7 @@ bool result = true; while(node) { - uint8_t digit = node & 7; + int8_t digit = node & 7; #if !defined (RF24NetworkMulticast) if (digit < 1 || digit > 5) #else
--- a/RF24Network.h Thu Nov 05 05:54:47 2015 +0000 +++ b/RF24Network.h Thu May 20 09:26:49 2021 +0000 @@ -603,7 +603,7 @@ * * @return This node's parent address, or -1 if this is the base */ - uint16_t parent() const; + int16_t parent() const; /** * Provided a node address and a pipe number, will return the RF24Network address of that child pipe for that node