[SYS] Remove unnecessaries ESP8266 ESP32 macros (#1931)
This commit is contained in:
1 parent
2065d57e11
commit
2645928dbd
11 files changed
+324
-505
No files matched your search
@@ -49,12 +49,8 @@
|
||||
BME280 mySensor;
|
||||
|
||||
void setupZsensorBME280() {
|
||||
# if defined(ESP8266) || defined(ESP32)
|
||||
// Allow custom pins on ESP Platforms
|
||||
Wire.begin(BME280_PIN_SDA, BME280_PIN_SCL);
|
||||
# else
|
||||
Wire.begin();
|
||||
# endif
|
||||
|
||||
mySensor.settings.commInterface = I2C_MODE;
|
||||
mySensor.settings.I2CAddress = BME280_i2c_addr;
|
||||
|
||||
Reference in new issue
Block a user