Skip to content

Commit

Permalink
fixed copy-paste typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcza committed Mar 10, 2024
1 parent e6d757b commit 3958da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/i2cdev/i2cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ esp_err_t i2c_dev_write_read_nonstop(const i2c_dev_t *dev,
i2c_cmd_handle_t cmd = i2c_cmd_link_create();
i2c_master_start(cmd);
i2c_master_write_byte(cmd, dev->addr << 1 | I2C_MASTER_WRITE, true);
i2c_master_write(cmd, (void *)wbuff, wsize, true);
i2c_master_write(cmd, wbuff, wsize, true);
i2c_master_start(cmd);
i2c_master_write_byte(cmd, dev->addr << 1 | I2C_MASTER_READ, true);
i2c_master_read(cmd, rbuff, rsize, I2C_MASTER_LAST_NACK);
Expand Down

0 comments on commit 3958da2

Please sign in to comment.