Made SENSORS_ACTIVATE() and SENSORS_DEACTIVATE() use non-pointers, for concistency

This commit is contained in:
adamdunkels 2010-01-14 20:13:34 +00:00
parent a364213180
commit f6715890de

View file

@ -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 }