Librairie adaptée au laboratoire 2
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Revision 40:b4d20279e312, committed 2016-02-24
- Comitter:
- mapellil
- Date:
- Wed Feb 24 14:51:25 2016 +0000
- Parent:
- 39:3cce4ba37695
- Child:
- 41:2e00362bdb8e
- Commit message:
- Fixed VL6180X::VL6180x_UpdateByte passing dangling pointer to I2cWrite
Changed in this revision
Components/VL6180X/vl6180x_class.cpp | Show annotated file Show diff for this revision Revisions of this file |
X_NUCLEO_COMMON.lib | Show annotated file Show diff for this revision Revisions of this file |
--- 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 */
--- a/X_NUCLEO_COMMON.lib Mon Jan 18 15:11:01 2016 +0000 +++ b/X_NUCLEO_COMMON.lib Wed Feb 24 14:51:25 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#da29b5403ca1 +https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#216930edb6b7