adafruit / Adafruit_CCS811

Arduino driver for CCS811 digital gas sensor
MIT License
65 stars 36 forks source link

Fix for ESP8266 #5

Closed simoneluconi closed 6 years ago

simoneluconi commented 6 years ago

ESP8266 Arduino Library uses a default I2C timeout value that is too short for the CCS811. This seems to fix reading errors from esp8255 i2c.

ladyada commented 6 years ago

hiya this broke continuous integration, please put the clock stretch code behind an #ifdef ESP8266 thx!

simoneluconi commented 6 years ago

Ops, sorry I didn't think about it. Done.

ladyada commented 6 years ago

hiya, use #ifdef ESP8266 thx

simoneluconi commented 6 years ago

done

coolchip commented 6 years ago

Thanks for this fix!