INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.cpp
- Revision:
- 29:6d6b67e2e212
- Parent:
- 28:7c9031e96c22
- Child:
- 38:18abb7f7dcb2
--- 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); }