moved energest init to after the rtimer init
This commit is contained in:
parent
42cbe85a49
commit
cc4aa440a0
|
@ -258,6 +258,8 @@ initialize(void)
|
|||
/* rtimers needed for radio cycling */
|
||||
rtimer_init();
|
||||
|
||||
/* we can initialize the energest arrays here */
|
||||
energest_init();
|
||||
/* after the timer intitialisation we start the cpu measurement */
|
||||
ENERGEST_ON(ENERGEST_TYPE_CPU);
|
||||
|
||||
|
@ -462,9 +464,6 @@ main(void)
|
|||
#if NETSTACK_CONF_WITH_IPV6
|
||||
uip_ds6_nbr_t *nbr;
|
||||
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
||||
|
||||
/* we can initialize the energest here, before the hardware */
|
||||
energest_init();
|
||||
|
||||
|
||||
initialize();
|
||||
|
|
Loading…
Reference in a new issue