Fixed STMPE1600 writeSYS_CTRL, enabled multi sensors support
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_53L0A1 by
Diff: Components/VL53L0X/vl53l0x_class.cpp
- Revision:
- 2:58b5e9097aa3
- Parent:
- 0:c523920bcc09
- Child:
- 7:35ecf3e060c3
diff -r 01b8004bc0a7 -r 58b5e9097aa3 Components/VL53L0X/vl53l0x_class.cpp --- a/Components/VL53L0X/vl53l0x_class.cpp Mon Nov 28 14:52:49 2016 +0000 +++ b/Components/VL53L0X/vl53l0x_class.cpp Thu Dec 01 14:17:46 2016 +0000 @@ -5031,7 +5031,7 @@ } -int VL53L0X::ReadID() +int VL53L0X::ReadID(uint8_t *id) { int status = 0; uint16_t rl_id=0; @@ -5113,7 +5113,7 @@ status=IsPresent(); if(!status) { - status=Init(); + VL53L0X_DataInit(Device); if(status != VL53L0X_ERROR_NONE) { printf("Failed to init VL53L0X sensor!\n\r");