Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.cpp
- Revision:
- 9:9cbc1736f148
- Parent:
- 8:f943a1fca15f
- Child:
- 10:4954b09b72d8
--- a/Components/VL6180X/vl6180x_class.cpp Tue Sep 29 14:50:15 2015 +0200
+++ b/Components/VL6180X/vl6180x_class.cpp Tue Sep 29 15:40:08 2015 +0200
@@ -382,10 +382,12 @@
if( status ){
VL6180x_ErrLog("new i2c addr Wr fail");
}
+ DevData.I2cAddr = NewAddress;
LOG_FUNCTION_END(status);
return status;
}
+
uint16_t VL6180X::VL6180x_GetUpperLimit(VL6180xDev_t dev) {
uint16_t limit;
int scaling;
@@ -2574,7 +2576,7 @@
{
memcpy(tmp+sizeof(RegisterAddr), pBuffer, NumByteToWrite);
}
- ret = dev_i2c.write(DeviceAddr, (const char*)tmp, NumByteToWrite+sizeof(RegisterAddr), false);
+ ret = dev_i2c.write(WriteDeviceAddr, (const char*)tmp, NumByteToWrite+sizeof(RegisterAddr), false);
if(ret) return -1;
return 0;
