Skip to content

Commit 6ff677c

Browse files
properly pointing to the i2cport
1 parent 75f65f0 commit 6ff677c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun VL53L1X 4m Laser Distance Sensor
2-
version=1.1.3
2+
version=1.1.4
33
author=SparkFun Electronics <techsupport@sparkfun.com>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for the SparkFun Qwiic 4m Distance Sensor - VL53L1X

src/SparkFun_VL53L1X.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
SFEVL53L1X::SFEVL53L1X(TwoWire &i2cPort, int shutdownPin, int interruptPin)
77
{
8-
*_i2cPort = i2cPort;
8+
_i2cPort = &i2cPort;
99
_shutdownPin = shutdownPin;
1010
_interruptPin = interruptPin;
1111
_device = new VL53L1X(&i2cPort, shutdownPin, interruptPin);

0 commit comments

Comments
 (0)