/* Reads the sensor and returns the data as a sensors_event_t.  */
err_t lm75bGetSensorEvent(sensors_event_t *event)
/* Reads the sensor and returns the data as a sensors_event_t.  */
err_t lm75bGetSensorEvent(sensors_event_t *event)
{
  int32_t temp;
  memset(event, 0, sizeof(sensors_event_t));
  event->version   = sizeof(sensors_event_t);
  event->sensor_id = _lm75bSensorID;
  event->type      = SENSOR_TYPE_AMBIENT_TEMPERATURE;
  event->timestamp = delayGetTicks();
  ASSERT_STATUS(lm75bGetTemperature(&temp));
  event->temperature = temp * 0.125F;
  return ERROR_NONE;
}