Skip to content

Commit 365787c

Browse files
Felix Kolbefelix-kolbe
authored andcommitted
Fix possible UR bug (to clear warnings)
1 parent 028f017 commit 365787c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/src/vl53l0x_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,8 @@ VL53L0X_PerformOffsetCalibration(VL53L0X_DEV Dev,
20102010
VL53L0X_Error VL53L0X_CheckAndLoadInterruptSettings(VL53L0X_DEV Dev,
20112011
uint8_t StartNotStopFlag) {
20122012
uint8_t InterruptConfig;
2013-
FixPoint1616_t ThresholdLow;
2014-
FixPoint1616_t ThresholdHigh;
2013+
FixPoint1616_t ThresholdLow = 0; // both zero-initialized as they might
2014+
FixPoint1616_t ThresholdHigh = 0; // not get set by _GetInterruptThresholds()
20152015
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
20162016

20172017
InterruptConfig =

0 commit comments

Comments
 (0)