Skip to content

Commit 9e2df6e

Browse files
author
Eldon Schoop
committed
Updates instance address on changeAddress
1 parent dd6cce0 commit 9e2df6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SparkFun_VL6180X.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ uint8_t VL6180x::changeAddress(uint8_t old_address, uint8_t new_address){
131131
if( new_address > 127) return old_address;
132132

133133
VL6180x_setRegister(VL6180X_I2C_SLAVE_DEVICE_ADDRESS, new_address);
134-
134+
_i2caddress = new_address;
135135
return VL6180x_getRegister(VL6180X_I2C_SLAVE_DEVICE_ADDRESS);
136136
}
137137

0 commit comments

Comments
 (0)