temporary fix to get sicslowpan.c working on the Sky platform:

conventional MAC implementations require a call to the MAC driver's
read function.
This commit is contained in:
nvt-se 2008-11-06 20:45:06 +00:00
parent 21e4b4be80
commit 0c4f7bed8f
2 changed files with 9 additions and 2 deletions

View file

@ -32,7 +32,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: sicslowpan.c,v 1.3 2008/10/14 13:39:12 julienabeille Exp $
* $Id: sicslowpan.c,v 1.4 2008/11/06 20:45:06 nvt-se Exp $
*/
/**
* \file
@ -1209,6 +1209,12 @@ input(const struct mac_driver *r)
u16_t frag_tag = 0;
#endif /*SICSLOWPAN_CONF_FRAG*/
#ifdef SICSLOWPAN_CONF_CONVENTIONAL_MAC
if(r->read() <= 0) {
return;
}
#endif /* SICSLOWPAN_CONF_CONVENTIONAL_MAC */
/* init */
uncomp_hdr_len = 0;
rime_hdr_len = 0;