/* Read sensor data. 
In the event of a false return from this routine, the contents stored at the location specified by "data" are undefined. */
bool sensor_read(sensor_t *sensor, sensor_read_t type, sensor_data_t *data)
/* Read sensor data. 
In the event of a false return from this routine, the contents stored at the location specified by "data" are undefined. */
bool sensor_read(sensor_t *sensor, sensor_read_t type, sensor_data_t *data)
{
	bool result;
	result = SENSOR_DRV_CALL(sensor, read, type, data);
	if (result) {
		data->timestamp = sensor_timestamp();
	}
	return result;
}