Schneider noticed a logic error, but it's unused code.
Fix it anyway, so noone gets confused.
This commit is contained in:
parent
3e67b6bc30
commit
3f5f8dd21a
|
@ -342,7 +342,7 @@ void mesh_recvqloop_end(void){
|
||||||
nrf_config_set(&oldconfig);
|
nrf_config_set(&oldconfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mesh_recvloop(void){
|
void mesh_recvloop(void){ /* unused: replaced by mesh_recvloop_plus */
|
||||||
int recvend=M_RECVTIM/SYSTICKSPEED+getTimer();
|
int recvend=M_RECVTIM/SYSTICKSPEED+getTimer();
|
||||||
int pktctr=0;
|
int pktctr=0;
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ void mesh_recvloop(void){
|
||||||
}else{
|
}else{
|
||||||
delayms_power(10);
|
delayms_power(10);
|
||||||
};
|
};
|
||||||
}while(getTimer()<recvend || pktctr>MESHBUFSIZE);
|
}while(getTimer()<recvend && pktctr<MESHBUFSIZE);
|
||||||
mesh_recvqloop_end();
|
mesh_recvqloop_end();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue