Skip to content

Commit 3d0dba1

Browse files
committed
Add support for repeat starts in begin function
1 parent bca6561 commit 3d0dba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SparkFun_AS7331.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ class SfeAS7331ArdI2C : public SfeAS7331Driver
701701
if (_theI2CBus.init(address) != kSTkErrOk)
702702
return false;
703703

704+
// Device supports repeat starts, enable it.
705+
_theI2CBus.setStop(false);
706+
704707
setCommunicationBus(&_theI2CBus);
705708

706709
if (!reset())

0 commit comments

Comments
 (0)