Librairie adaptée au laboratoire 2
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Revision 29:6d6b67e2e212, committed 2015-11-06
- Comitter:
- gallonm
- Date:
- Fri Nov 06 08:39:27 2015 +0100
- Parent:
- 28:7c9031e96c22
- Child:
- 30:75bf50276881
- Commit message:
- Updated AlsSetThresholds function
Changed in this revision
Components/VL6180X/vl6180x_class.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Components/VL6180X/vl6180x_class.cpp Thu Nov 05 17:20:03 2015 +0100 +++ b/Components/VL6180X/vl6180x_class.cpp Fri Nov 06 08:39:27 2015 +0100 @@ -2689,10 +2689,7 @@ RawThreshLow=*(uint16_t*)p_low; p_high=&RawAlsHigh; RawThreshHigh=*(uint16_t*)p_high; - //return VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh); - VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh); - VL6180x_RdWord(Device, SYSALS_THRESH_HIGH, &RawThreshLow); - VL6180x_RdWord(Device, SYSALS_THRESH_LOW, &RawThreshHigh); + return VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh); }