You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In functions beginSPI and beginI2C there are two calls to the begin function. The begin function has a 2 ms delay at the start to accommodate BME280 startup. When using a BME280, this introduces more delay that is required. Capturing the return value of begin and using it in the comparisons will eliminate the extra startup delay. PR will be submitted shortly.
Change
if(begin() ==0x58) return(true); //Begin normal init with these settings. Should return chip ID of 0x58 for BMPif(begin() ==0x60) return(true); //Begin normal init with these settings. Should return chip ID of 0x60 for BME
to
uint8_tchipID=begin();
if(chipID==0x58) return(true); //Begin normal init with these settings. Should return chip ID of 0x58 for BMPif(chipID==0x60) return(true); //Begin normal init with these settings. Should return chip ID of 0x60 for BME
The text was updated successfully, but these errors were encountered:
pbolduc
added a commit
to pbolduc/SparkFun_BME280_Arduino_Library
that referenced
this issue
Oct 20, 2019
In functions beginSPI and beginI2C there are two calls to the begin function. The begin function has a 2 ms delay at the start to accommodate BME280 startup. When using a BME280, this introduces more delay that is required. Capturing the return value of begin and using it in the comparisons will eliminate the extra startup delay. PR will be submitted shortly.
Change
to
The text was updated successfully, but these errors were encountered: