INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.cpp
- Revision:
- 40:b4d20279e312
- Parent:
- 38:18abb7f7dcb2
- Child:
- 45:70e4abd970a9
--- a/Components/VL6180X/vl6180x_class.cpp Mon Jan 18 15:11:01 2016 +0000 +++ b/Components/VL6180X/vl6180x_class.cpp Wed Feb 24 14:51:25 2016 +0000 @@ -2571,7 +2571,7 @@ int status; uint8_t buffer; - status=VL6180x_I2CWrite(Device->I2cAddr, index, (uint8_t *)buffer,(uint8_t)0); + status=VL6180x_I2CWrite(Device->I2cAddr, index, (uint8_t *)&buffer,(uint8_t)0); if(!status) { /* read data direct onto buffer */