diff --git a/core/lib/sensors.h b/core/lib/sensors.h index ef96cec75..2f4595665 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.7 2010/01/14 20:04:38 nifi Exp $ + * @(#)$Id: sensors.h,v 1.8 2010/01/14 20:13:34 adamdunkels Exp $ */ #ifndef __SENSORS_H__ @@ -41,8 +41,8 @@ #define SENSORS_ACTIVE 129 /* ACTIVE => 0 -> turn off, 1 -> turn on */ #define SENSORS_READY 130 /* read only */ -#define SENSORS_ACTIVATE(sensor) (sensor)->configure(SENSORS_ACTIVE, 1) -#define SENSORS_DEACTIVATE(sensor) (sensor)->configure(SENSORS_ACTIVE, 0) +#define SENSORS_ACTIVATE(sensor) (sensor).configure(SENSORS_ACTIVE, 1) +#define SENSORS_DEACTIVATE(sensor) (sensor).configure(SENSORS_ACTIVE, 0) #define SENSORS_SENSOR(name, type, value, configure, status) \ const struct sensors_sensor name = { type, value, configure, status }