Revision d2281627

View differences:

source/P9221R/v1/alld_P9221R_v1.c
114 114
 */
115 115
apalExitStatus_t p9221r_lld_read_x_alignment(const P9221RDriver* const p9221r, int8_t* const x_alignment, const apalTime_t timeout)
116 116
{
117
    uint8_t addr = P9221R_LLD_REGISTER_ALIGNMENT_X;
118
    apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &addr, 2, x_alignment, 1, timeout);
117
    uint8_t address = P9221R_LLD_REGISTER_ALIGNMENT_X;
118
    apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &address, 2, x_alignment, 1, timeout); // TODO check if implicit cast is ok (uint)
119 119

  
120 120
    return status;
121 121
}
......
130 130
 */
131 131
apalExitStatus_t p9221r_lld_read_y_alignment(const P9221RDriver* const p9221r, int8_t* const y_alignment, const apalTime_t timeout)
132 132
{
133
    uint8_t addr = P9221R_LLD_REGISTER_ALIGNMENT_Y;
134
    apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &addr, 2, y_alignment, 1, timeout);
133
    uint8_t address = P9221R_LLD_REGISTER_ALIGNMENT_Y;
134
    apalExitStatus_t status = apalI2CMasterTransmit(p9221r->i2cd, (P9221R_LLD_I2C_ADDR_FIXED | p9221r->addr), &address, 2, y_alignment, 1, timeout); // TODO check if implicit cast is ok (uint)
135 135

  
136 136
    return status;
137 137
}

Also available in: Unified diff