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
SparkFunBME280.h uses many macro definition where enum would be a cleaner solution. Especially very common names like I2C_MODE or SPI_MODE are problematic.
SparkFunBME280.h uses many macro definition where enum would be a cleaner solution. Especially very common names like I2C_MODE or SPI_MODE are problematic.
SparkFun_BME280_Arduino_Library/src/SparkFunBME280.h
Line 46 in c42e780
SparkFun_BME280_Arduino_Library/src/SparkFunBME280.h
Line 47 in c42e780
E. g. when installing the BMI160 library there are tons of subsequent error message just due to these rogue macro definitions.
Cleanest solution (see patch below) is to move them into the class (and thus the class' namespace) and define them as anonymous enum values.
Patch:
This is an incompatible change, you need to explicitly stating the class name when using it outside the BME280 class:
The text was updated successfully, but these errors were encountered: