Changed order of initialization to make light sensors work again: a previous change to irq.c seems to have conflicted with light sensor initialization

This commit is contained in:
adamdunkels 2008-07-07 23:44:58 +00:00
parent 10f3964be1
commit 84e4bf7a15

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.32 2008/07/02 09:05:41 adamdunkels Exp $ * @(#)$Id: contiki-sky-main.c,v 1.33 2008/07/07 23:44:58 adamdunkels Exp $
*/ */
#include <signal.h> #include <signal.h>
@ -230,6 +230,9 @@ main(int argc, char **argv)
process_init(); process_init();
process_start(&etimer_process, NULL); process_start(&etimer_process, NULL);
process_start(&sensors_process, NULL); process_start(&sensors_process, NULL);
sensors_light_init();
ctimer_init(); ctimer_init();
cc2420_init(); cc2420_init();