Restart CC2420 SFD interrupt after DCO calibration only if it is enabled.

This commit is contained in:
adamdunkels 2011-01-09 21:03:42 +00:00
parent f002563e60
commit a6fe42f60f

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)$Id: contiki-sky-main.c,v 1.86 2011/01/05 12:04:23 joxe Exp $ * @(#)$Id: contiki-sky-main.c,v 1.87 2011/01/09 21:03:42 adamdunkels Exp $
*/ */
#include <signal.h> #include <signal.h>
@ -431,7 +431,9 @@ main(int argc, char **argv)
watchdog_periodic(); watchdog_periodic();
timer_reset(&mgt_timer); timer_reset(&mgt_timer);
msp430_sync_dco(); msp430_sync_dco();
#if CC2420_CONF_SFD_TIMESTAMPS
cc2420_arch_sfd_init(); cc2420_arch_sfd_init();
#endif /* CC2420_CONF_SFD_TIMESTAMPS */
} }
#endif #endif