INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
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