Skip to content

Commit f2419e5

Browse files
Merge pull request #10 from per1234/preprocessor-error
Correct preprocessor directive syntax
2 parents 4341769 + 8016588 commit f2419e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFunCCS811.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CCS811Core::status CCS811Core::beginCore(void)
5858
#else
5959
#endif
6060

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

0 commit comments

Comments
 (0)