Initialization of energest_current_time to fix problems with energy attribution on LEDs during Tmote Sky bootup

This commit is contained in:
adamdunkels 2007-11-12 22:27:21 +00:00
parent c5d79e8aea
commit 812b86f162

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: energest.c,v 1.4 2007/05/22 21:55:33 adamdunkels Exp $
* $Id: energest.c,v 1.5 2007/11/12 22:27:21 adamdunkels Exp $
*/
/**
@ -53,7 +53,7 @@ energest_init(void)
{
int i;
for(i = 0; i < ENERGEST_TYPE_MAX; ++i) {
energest_total_time[i].current = 0;
energest_total_time[i].current = energest_current_time[i] = 0;
}
}
/*---------------------------------------------------------------------------*/