mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Fixed compilation problem, added send() call so that a packet is sent out immediately
This commit is contained in:
parent
516f9316ab
commit
d937ff8d16
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: sabc.c,v 1.4 2007/03/19 22:10:17 adamdunkels Exp $
|
* $Id: sabc.c,v 1.5 2007/03/20 12:26:57 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,7 +68,7 @@ void
|
|||||||
sabc_close(struct sabc_conn *c)
|
sabc_close(struct sabc_conn *c)
|
||||||
{
|
{
|
||||||
abc_close(&c->c);
|
abc_close(&c->c);
|
||||||
ctimer_setop(&c->t);
|
ctimer_stop(&c->t);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
@ -101,6 +101,7 @@ sabc_send_stubborn(struct sabc_conn *c, clock_time_t t)
|
|||||||
if(c->buf == NULL) {
|
if(c->buf == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
send(c);
|
||||||
ctimer_set(&c->t, t, send, c);
|
ctimer_set(&c->t, t, send, c);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: sabc.h,v 1.4 2007/03/19 22:10:17 adamdunkels Exp $
|
* $Id: sabc.h,v 1.5 2007/03/20 12:26:57 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -117,7 +117,6 @@ void sabc_close(struct sabc_conn *c);
|
|||||||
*/
|
*/
|
||||||
int sabc_send_stubborn(struct sabc_conn *c, clock_time_t t);
|
int sabc_send_stubborn(struct sabc_conn *c, clock_time_t t);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Cancel the current stubborn message.
|
* \brief Cancel the current stubborn message.
|
||||||
* \param c A sabc connection that must have been previously set up
|
* \param c A sabc connection that must have been previously set up
|
||||||
|
Loading…
Reference in New Issue
Block a user