/* This function reads the baro data and reports the data */
static int drv_baro_bosch_bmp380_read_baro(i2c_dev_t *drv, barometer_data_t *pdata)
/* This function reads the baro data and reports the data */
static int drv_baro_bosch_bmp380_read_baro(i2c_dev_t *drv, barometer_data_t *pdata)
{
    int ret = 0;
    ret = drv_baro_bosch_bmp380_read_uncomp_baro(drv, pdata);
    if (unlikely(ret) != 0) {
        return ret;
    }
    ret = drv_baro_bosch_bmp380_compensate_baro(pdata);
    if (unlikely(ret) != 0) {
        return ret;
    }
    return 0;
}