/* perform a single pressure measurement uses the stored temperature value for sensor temperature compensation temperature must be measured regularly for good temperature compensation  */
static bool dps310_measure_psr(const struct device *dev)
/* perform a single pressure measurement uses the stored temperature value for sensor temperature compensation temperature must be measured regularly for good temperature compensation  */
static bool dps310_measure_psr(const struct device *dev)
{
	struct dps310_data *data = dev->data;
	const struct dps310_cfg *config = dev->config;
	if (!dps310_trigger_pressure(dev)) {
		return false;
	}
	uint8_t value_raw[3];
	int res = i2c_write_read_dt(&config->i2c, &REG_ADDR_PSR_B2, 1,
				    &value_raw, sizeof(value_raw));
	if (res < 0) {
		LOG_WRN("I2C error: %d", res);
		return false;
	}
	int32_t psr_raw = raw_to_int24(&value_raw[0]);
	dps310_scale_pressure(dev, data->raw_tmp, psr_raw);
	return true;
}