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
Dependents: Ultrasound_And_IMU
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.cpp
- Revision:
- 51:229ea522cff8
- Parent:
- 48:e799ad44dab7
- Child:
- 54:17f3bb228b13
--- a/Components/VL6180X/vl6180x_class.cpp Fri Sep 09 09:50:12 2016 +0000
+++ b/Components/VL6180X/vl6180x_class.cpp Mon Sep 12 09:10:29 2016 +0000
@@ -2702,6 +2702,7 @@
case(range_single_shot_polling):
r_status=VL6180x_RangeConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_NEW_SAMPLE_READY);
l_status=VL6180x_AlsConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_DISABLED);
+ DisableGPIOxOut(1);
if((!r_status)&&(!l_status))
return RangeMeasPollSingleShot();
else
@@ -2710,6 +2711,7 @@
case(als_single_shot_polling):
r_status=VL6180x_AlsConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_NEW_SAMPLE_READY);
l_status=VL6180x_RangeConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_DISABLED);
+ DisableGPIOxOut(1);
if((!r_status)&&(!l_status))
return AlsMeasPollSingleShot();
else
@@ -2717,7 +2719,7 @@
case(range_continuous_polling):
r_status=VL6180x_RangeConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_NEW_SAMPLE_READY);
- l_status=VL6180x_AlsConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_DISABLED);
+ l_status=VL6180x_AlsConfigInterrupt(Device, CONFIG_GPIO_INTERRUPT_DISABLED);
if((!r_status)&&(!l_status))
return RangeMeasPollContinuousMode();
else
