Skip to content

Commit

Permalink
Fix peek length
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed May 13, 2016
1 parent a00090c commit 3fe2560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ uint16_t RF24Network::peek(RF24NetworkHeader& header)
RF24NetworkFrame *frame = (RF24NetworkFrame*)(frame_queue);
memcpy(&header,&frame->header,sizeof(RF24NetworkHeader));
uint16_t msg_size;
memcpy(&msg_size,frame+8,2);
memcpy(&msg_size,frame_queue+8,2);
return msg_size;
#endif
}
Expand Down

0 comments on commit 3fe2560

Please sign in to comment.