Skip to content

Commit dc395ce

Browse files
committed
Remove redundant address set from begin.
1 parent 3a0456e commit dc395ce

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/SparkFun_AS7331.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ class SfeAS7331ArdI2C : public SfeAS7331Driver
4747

4848
setCommunicationBus(&_theI2CBus);
4949

50-
// If the address passed in isn't the default, set the new address.
51-
if (kDefaultAS7331Addr != address)
52-
{
53-
if(!setDeviceAddress(address))
54-
return false;
55-
}
56-
5750
if(!isConnected())
5851
return false;
5952

0 commit comments

Comments
 (0)