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
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ send(void *ptr)
|
||||||
if(c->buf) {
|
if(c->buf) {
|
||||||
queuebuf_to_packetbuf(c->buf);
|
queuebuf_to_packetbuf(c->buf);
|
||||||
unicast_send(&c->c, &c->receiver);
|
unicast_send(&c->c, &c->receiver);
|
||||||
stunicast_set_timer(c, CLOCK_SECOND);
|
ctimer_restart(&c->t);
|
||||||
}
|
}
|
||||||
/* if(c->u->sent != NULL) {
|
/* if(c->u->sent != NULL) {
|
||||||
c->u->sent(c);
|
c->u->sent(c);
|
||||||
|
|
Loading…
Add table
Reference in a new issue