Fix stunicast timer restart
Instead of hard coded setting the resend timer to CLOCK_SECOND, restart it, so that the time between ANY following transmissions will be as passed to stunicast_send_stubborn.
This commit is contained in:
parent
b1ef3fdf41
commit
bf3a5de75e
|
@ -115,7 +115,7 @@ send(void *ptr)
|
|||
if(c->buf) {
|
||||
queuebuf_to_packetbuf(c->buf);
|
||||
unicast_send(&c->c, &c->receiver);
|
||||
stunicast_set_timer(c, CLOCK_SECOND);
|
||||
ctimer_restart(&c->t);
|
||||
}
|
||||
/* if(c->u->sent != NULL) {
|
||||
c->u->sent(c);
|
||||
|
|
Loading…
Reference in a new issue