Schneider noticed a logic error, but it's unused code.

Fix it anyway, so noone gets confused.
This commit is contained in:
Stefan `Sec` Zehl 2012-04-02 09:09:04 +02:00
parent 3e67b6bc30
commit 3f5f8dd21a
1 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ void mesh_recvqloop_end(void){
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 pktctr=0;
@ -353,7 +353,7 @@ void mesh_recvloop(void){
}else{
delayms_power(10);
};
}while(getTimer()<recvend || pktctr>MESHBUFSIZE);
}while(getTimer()<recvend && pktctr<MESHBUFSIZE);
mesh_recvqloop_end();
};