Skip to content

Commit

Permalink
erm. getting the precedence right
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Jan 3, 2012
1 parent e4d2ba7 commit 5e9e359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/funk/mesh.c
Expand Up @@ -134,7 +134,7 @@ void mesh_cleanup(void){
if (MO_TIME(meshbuffer[i].pkt)-now>SECS_DAY)
meshbuffer[i].flags=MF_FREE;
};
if(mesh_sanity(meshbuffer[i].pkt)&MP_SEND!=0){
if((mesh_sanity(meshbuffer[i].pkt)&MP_SEND)!=0){
meshbuffer[i].flags=MF_FREE;
meshPanic(meshbuffer[i].pkt,i);
};
Expand Down Expand Up @@ -224,7 +224,7 @@ uint8_t mesh_recvqloop_work(void){

if(mesh_sanity(buf)){
meshincctr++;
if(mesh_sanity(buf)&MP_RECV!=0){
if((mesh_sanity(buf)&MP_RECV)!=0){
meshPanic(buf,-1);
};
return 0;
Expand Down

0 comments on commit 5e9e359

Please sign in to comment.