Skip to content

Commit

Permalink
Fix a couple bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Mar 26, 2012
1 parent 98830b3 commit c25b5bd
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 @@ -109,7 +109,7 @@ bool RF24Network::enqueue(void)
IF_SERIAL_DEBUG(printf_P(PSTR("%lu: NET Enqueue @%x "),millis(),next_frame-frame_queue));

// Copy the current frame into the frame queue
if ( next_frame <= frame_queue + sizeof(frame_queue) )
if ( next_frame < frame_queue + sizeof(frame_queue) )
{
memcpy(next_frame,frame_buffer, frame_size );
next_frame += frame_size;
Expand Down Expand Up @@ -207,7 +207,7 @@ bool RF24Network::write(uint16_t to_node)
return false;

// First, stop listening so we can talk.
radio.stopListening();
//radio.stopListening();

// Where do we send this? By default, to our parent
uint16_t send_node = parent_node;
Expand Down

0 comments on commit c25b5bd

Please sign in to comment.