Skip to content

Commit

Permalink
Update module_i2c_master/src/i2c-mm.xc
Browse files Browse the repository at this point in the history
Updated #define I2C_NO_REGISTER_ADDRESS
  • Loading branch information
sethuchandan committed Sep 20, 2012
1 parent 2109b92 commit 69533c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module_i2c_master/src/i2c-mm.xc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ int i2c_master_read_reg(int device, int addr, unsigned char data[], int nbytes,
int i2c_master_write_reg(int device, int addr, unsigned char s_data[], int nbytes, struct r_i2c &i2c) {
startBit(i2c, 1);
if (!tx8(i2c, device<<1)) return floatWires(i2c);
#ifndef AD7995_0
#ifndef I2C_NO_REGISTER_ADDRESS
#ifdef I2C_TI_COMPATIBILITY
if (!tx8(i2c, addr << 1 | (s_data[0] >> 8) & 1)) return floatWires(i2c);
#else
Expand Down

0 comments on commit 69533c4

Please sign in to comment.