Added dummy function callback because sdcc does not like NULL function pointers
This commit is contained in:
parent
d28bfe3f58
commit
8d1615459a
1 changed files with 6 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: shell-rime-ping.c,v 1.4 2008/08/15 18:58:42 adamdunkels Exp $
|
* $Id: shell-rime-ping.c,v 1.5 2009/02/24 21:28:43 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,6 +118,10 @@ timedout_mesh(struct mesh_conn *c)
|
||||||
/* printf("packet timedout\n");*/
|
/* printf("packet timedout\n");*/
|
||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
|
sent_mesh(struct mesh_conn *c)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
static void
|
||||||
recv_mesh(struct mesh_conn *c, rimeaddr_t *from, u8_t hops)
|
recv_mesh(struct mesh_conn *c, rimeaddr_t *from, u8_t hops)
|
||||||
{
|
{
|
||||||
struct ping_msg *ping;
|
struct ping_msg *ping;
|
||||||
|
@ -152,7 +156,7 @@ recv_mesh(struct mesh_conn *c, rimeaddr_t *from, u8_t hops)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CC_CONST_FUNCTION static struct mesh_callbacks mesh_callbacks = { recv_mesh,
|
CC_CONST_FUNCTION static struct mesh_callbacks mesh_callbacks = { recv_mesh,
|
||||||
NULL,
|
sent_mesh,
|
||||||
timedout_mesh };
|
timedout_mesh };
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue