Ensure that receiver_callback is set before calling it
This commit is contained in:
parent
c948c97b4f
commit
5c5775e93b
1 changed files with 4 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: nullmac.c,v 1.4 2007/10/23 21:27:57 adamdunkels Exp $
|
* $Id: nullmac.c,v 1.5 2007/12/16 14:31:43 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,9 @@ send(void)
|
||||||
static void
|
static void
|
||||||
input(const struct radio_driver *d)
|
input(const struct radio_driver *d)
|
||||||
{
|
{
|
||||||
|
if(receiver_callback) {
|
||||||
receiver_callback(&nullmac_driver);
|
receiver_callback(&nullmac_driver);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Reference in a new issue