Skip to content

Commit ce79d71

Browse files
committed
Prototype Test for Pull Request to ask about best way to handle Wire.Begin()
1 parent 1ee6ce5 commit ce79d71

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/Example1_BasicReadings/Example1_BasicReadings.ino

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ void setup()
6161
Serial.println("STHS34PF80 Example 1: Basic Readings");
6262

6363
// Begin I2C
64-
if(Wire.begin() == 0)
65-
{
66-
Serial.println("I2C Error - check I2C Address");
67-
while(1);
68-
}
64+
Wire.begin()
6965

7066
// Establish communication with device
7167
if(mySensor.begin() == false)

0 commit comments

Comments
 (0)