Skip to content

Commit

Permalink
Per RF24 issue change binary values to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Nov 10, 2016
1 parent 53e1a44 commit 85550ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ uint16_t RF24Network::addressOfPipe( uint16_t node, uint8_t pipeNo )
uint16_t RF24Network::direct_child_route_to( uint16_t node )
{
// Presumes that this is in fact a child!!
uint16_t child_mask = ( node_mask << 3 ) | 0B111;
uint16_t child_mask = ( node_mask << 3 ) | 0x07;
return node & child_mask;

}
Expand Down Expand Up @@ -1197,7 +1197,7 @@ bool RF24Network::is_valid_address( uint16_t node )

while(node)
{
uint8_t digit = node & 0B111;
uint8_t digit = node & 0x07;
#if !defined (RF24NetworkMulticast)
if (digit < 1 || digit > 5)
#else
Expand Down

0 comments on commit 85550ee

Please sign in to comment.