/* Initiates temperature measurement on the barometric pressure sensor and reads pressure from it.  */
uint32_t BMP_getTemperature(float *temperature)
/* Initiates temperature measurement on the barometric pressure sensor and reads pressure from it.  */
uint32_t BMP_getTemperature(float *temperature)
{
   int8_t result;
   int32_t uncompTemp;
   int32_t uncompPressure;
   int32_t compTemp;
   if( bmp280PowerMode == BMP280_NORMAL_MODE ) {
      result = bmp280_read_uncomp_temperature( &uncompTemp );
   }
   else {
      result = bmp280_get_forced_uncomp_pressure_temperature( &uncompPressure, &uncompTemp );
   }
   if( result != SUCCESS ) {
      return (uint32_t) result;
   }
   compTemp = bmp280_compensate_temperature_int32( uncompTemp );
   *temperature = (float) compTemp;
   *temperature /= 100.0f;
   return BMP_OK;
}