no modif
Revision 6:be18fc3ba293, committed 2021-05-20
- Comitter:
- Giamarchi
- Date:
- Thu May 20 07:20:07 2021 +0000
- Parent:
- 3:dfc8da7ac18c
- Commit message:
- version 000
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 |
diff -r dfc8da7ac18c -r be18fc3ba293 RF24Network.cpp --- a/RF24Network.cpp Thu Nov 05 05:54:47 2015 +0000 +++ b/RF24Network.cpp Thu May 20 07:20:07 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
diff -r dfc8da7ac18c -r be18fc3ba293 RF24Network.h --- a/RF24Network.h Thu Nov 05 05:54:47 2015 +0000 +++ b/RF24Network.h Thu May 20 07:20:07 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