/* regAdress: Address that has to be read returns: register content or -1 on fail  */
int16_t readByte(uint8_t regAddress)
/* regAdress: Address that has to be read returns: register content or -1 on fail  */
int16_t readByte(uint8_t regAddress)
{
    uint8_t data;
    int     ret =
      sensor_i2c_read(&(dps310_ctx.i2c), regAddress, &data, 1, I2C_OP_RETRIES);
    if (ret == 0)
        return data;
    else
        return -1;
}