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:
Amit Geron 2015-07-08 22:13:44 +03:00
parent b1ef3fdf41
commit bf3a5de75e
1 changed files with 1 additions and 1 deletions

View File

@ -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);