Skip to content

Commit

Permalink
Merge pull request #727 from alphatech56/FixingwriteWords
Browse files Browse the repository at this point in the history
bug in I2Cdev::writeWords #726
  • Loading branch information
jrowberg authored Dec 4, 2022
2 parents 969f23a + 19801c2 commit 383eb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RP2040/I2Cdev/I2Cdev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ bool I2Cdev::writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16
for(int i=0; i<length; i++){
data_buf[j] = data[i] >> 8;
data_buf[j+1] = data[i];
j++;
j += 2;
}
status = i2c_write_blocking(i2c_default, devAddr, data_buf, new_len, false);

Expand Down

0 comments on commit 383eb0c

Please sign in to comment.