diff --git a/core/lib/sensors.c b/core/lib/sensors.c index b3240eb53..f6392506a 100644 --- a/core/lib/sensors.c +++ b/core/lib/sensors.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: sensors.c,v 1.3 2010/01/14 13:29:56 joxe Exp $ + * @(#)$Id: sensors.c,v 1.4 2010/01/14 13:55:21 nifi Exp $ */ /* exeperimental code, will be renamed to sensors.c when done */ @@ -41,7 +41,6 @@ extern struct sensors_sensor *sensors[]; extern unsigned char sensors_flags[]; -extern struct process *sensors_selecting_proc[]; #define FLAG_CHANGED 0x80 @@ -108,8 +107,6 @@ PROCESS_THREAD(sensors_process, ev, data) PROCESS_BEGIN(); - sensors_platform_init(); - sensors_event = process_alloc_event(); for(i = 0; sensors[i] != NULL; ++i) { diff --git a/core/lib/sensors.h b/core/lib/sensors.h index a3714d24e..acc41ffd1 100644 --- a/core/lib/sensors.h +++ b/core/lib/sensors.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: sensors.h,v 1.3 2010/01/14 13:29:56 joxe Exp $ + * @(#)$Id: sensors.h,v 1.4 2010/01/14 13:55:21 nifi Exp $ */ #ifndef __SENSORS_H__ @@ -51,8 +51,7 @@ const struct sensors_sensor name = { type, value, configure, status } #define SENSORS(...) \ const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \ -unsigned char sensors_flags[SENSORS_NUM]; \ -struct process *sensors_selecting_proc[SENSORS_NUM] +unsigned char sensors_flags[SENSORS_NUM]; struct sensors_sensor { char * type;