mirror of
https://github.com/esphome/esphome.git
synced 2025-03-01 00:08:15 +00:00
Merge branch 'adc-new-library-espidf-5' of https://github.com/edwardtfn/esphome into adc-new-library-espidf-5
This commit is contained in:
commit
cda387ad36
@ -17,14 +17,14 @@ void IDFI2CBus::setup() {
|
|||||||
ESP_LOGCONFIG(TAG, "Setting up I2C bus...");
|
ESP_LOGCONFIG(TAG, "Setting up I2C bus...");
|
||||||
static i2c_port_t next_port = I2C_NUM_0;
|
static i2c_port_t next_port = I2C_NUM_0;
|
||||||
port_ = next_port;
|
port_ = next_port;
|
||||||
#if I2C_NUM_MAX > 1
|
#if SOC_I2C_NUM > 1
|
||||||
next_port = (next_port == I2C_NUM_0) ? I2C_NUM_1 : I2C_NUM_MAX;
|
next_port = (next_port == I2C_NUM_0) ? I2C_NUM_1 : I2C_NUM_MAX;
|
||||||
#else
|
#else
|
||||||
next_port = I2C_NUM_MAX;
|
next_port = I2C_NUM_MAX;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (port_ == I2C_NUM_MAX) {
|
if (port_ == I2C_NUM_MAX) {
|
||||||
ESP_LOGE(TAG, "Too many I2C buses configured");
|
ESP_LOGE(TAG, "Too many I2C buses configured. Max %u supported.", SOC_I2C_NUM);
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2024.12.0-dev"
|
__version__ = "2025.1.0-dev"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
VALID_SUBSTITUTIONS_CHARACTERS = (
|
VALID_SUBSTITUTIONS_CHARACTERS = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user