ISEN Nimes CSI3 / RF24Network

Dependents:   ISEN_RF24Network_Node_01 ISEN_RF24Network_Node_02

Files at this revision

API Documentation at this revision

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