Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Ignore packets directly sent to another node.
Browse files Browse the repository at this point in the history
  • Loading branch information
tht committed Oct 25, 2012
1 parent 1b3d848 commit 75a5642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RF12_T3.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class RF12_T3 {
_recvDone = 0;
} else if (_recvDone) {
state = RF_IDLE;
if (!reportBroken && rf12_crc!=0x0000)
if ( (!reportBroken && rf12_crc!=0x0000) // report broken packets?
| (buffer[0] & (1<<6) && (buffer[0] & 0x1F)!=nodeId) ) // not for us
_recvDone = 0; // ignore packet, because of invalid checksum
}
return _recvDone;
Expand Down

0 comments on commit 75a5642

Please sign in to comment.