/* Reads the sensor and returns the data as a sensors_event_t.  */
err_t bmp085GetSensorEvent(sensors_event_t *event)
/* Reads the sensor and returns the data as a sensors_event_t.  */
err_t bmp085GetSensorEvent(sensors_event_t *event)
{
  float pressure_kPa;
  memset(event, 0, sizeof(sensors_event_t));
  event->version   = sizeof(sensors_event_t);
  event->sensor_id = _bmp085SensorID;
  event->type      = SENSOR_TYPE_PRESSURE;
  event->timestamp = delayGetTicks();
  ASSERT_STATUS(bmp085GetPressure(&pressure_kPa));
  event->pressure = pressure_kPa / 100.0F;
  return ERROR_NONE;
}