Do not start I2C, unless needed for pressure sensor or OLED

pull/5/head
Pawel Jalocha 2019-01-23 16:09:30 +00:00
rodzic b68f5ffc73
commit 8b3eea922b
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -270,6 +270,11 @@ uint8_t BARO_I2C = (uint8_t)I2C_BUS;
#define PIN_BEEPER GPIO_NUM_17
#endif
#if !defined(WITH_OLED) && !defined(WITH_BMP180) && !defined(WITH_BMP280) && !defined(WITH_BME280)
#undef PIN_I2C_SCL
#undef PIN_I2C_SDA
#endif
// ======================================================================================================
// 48-bit unique ID of the chip