Skip to content

Commit

Permalink
Update VL6180X_WE.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Sep 25, 2023
1 parent d3c8376 commit 31e0476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VL6180X_WE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ uint8_t VL6180x::changeAddress(uint8_t old_address, uint8_t new_address){
if( new_address > 127) return old_address;

VL6180x_setRegister(VL6180X_I2C_SLAVE_DEVICE_ADDRESS, new_address);
_i2caddress = new_address;

return VL6180x_getRegister(VL6180X_I2C_SLAVE_DEVICE_ADDRESS);
}
Expand Down Expand Up @@ -384,4 +385,4 @@ float VL6180x::getLastAmbientLightFromHistory(vl6180x_als_gain VL6180X_ALS_GAIN)

void VL6180x::VL6180xClearInterrupt(void){
VL6180x_setRegister(VL6180X_SYSTEM_INTERRUPT_CLEAR, 0x07);
}
}

0 comments on commit 31e0476

Please sign in to comment.