Skip to content

Commit c5cbdb9

Browse files
committed
Remove non-existant clock stretching call for ESP32
1 parent 3518e6d commit c5cbdb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/BasicReadings/BasicReadings.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ void loop()
8181
}
8282

8383
delay(10); //Don't spam the I2C bus
84-
}
84+
}

src/SparkFunCCS811.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ CCS811Core::status CCS811Core::beginCore(void)
5858
#else
5959
#endif
6060

61-
#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_ESP8266)
62-
Wire.setClockStretchLimit(200000);// was defautl 230 uS, now 200ms
61+
#if defined(ARDUINO_ARCH_ESP8266)
62+
Wire.setClockStretchLimit(200000);// was default 230 uS, now 200ms
6363
#else
6464
#endif
6565

0 commit comments

Comments
 (0)