Skip to content

Bug in static void i2c_transferbytes(i2c_msg_t *pstmsg)? #33

@Kongduino

Description

@Kongduino

In static void i2c_transferbytes(i2c_msg_t *pstmsg) there are 2 if conditions that have a single =.

if ((pstmsg->direct == I2C_M_WRITE) && (pstmsg->event = EV_I2C_TXF_INT)) {

and

    } else if ((pstmsg->direct == I2C_M_READ) && (pstmsg->event = EV_I2C_RXF_INT)){

This looks suspiciously like they should be == equality tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions