mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 16:55:49 +00:00
Merge remote-tracking branch 'upstream/dev' into integration
This commit is contained in:
@@ -312,7 +312,7 @@ FileDecoderState AudioDecoder::decode_mp3_() {
|
|||||||
if (err) {
|
if (err) {
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case esp_audio_libs::helix_decoder::ERR_MP3_OUT_OF_MEMORY:
|
case esp_audio_libs::helix_decoder::ERR_MP3_OUT_OF_MEMORY:
|
||||||
// Intentional fallthrough
|
[[fallthrough]];
|
||||||
case esp_audio_libs::helix_decoder::ERR_MP3_NULL_POINTER:
|
case esp_audio_libs::helix_decoder::ERR_MP3_NULL_POINTER:
|
||||||
return FileDecoderState::FAILED;
|
return FileDecoderState::FAILED;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ ESP_IDF_FRAMEWORK_SCHEMA = cv.All(
|
|||||||
CONF_ENABLE_LWIP_DHCP_SERVER, "wifi", default=False
|
CONF_ENABLE_LWIP_DHCP_SERVER, "wifi", default=False
|
||||||
): cv.boolean,
|
): cv.boolean,
|
||||||
cv.Optional(
|
cv.Optional(
|
||||||
CONF_ENABLE_LWIP_MDNS_QUERIES, default=False
|
CONF_ENABLE_LWIP_MDNS_QUERIES, default=True
|
||||||
): cv.boolean,
|
): cv.boolean,
|
||||||
cv.Optional(
|
cv.Optional(
|
||||||
CONF_ENABLE_LWIP_BRIDGE_INTERFACE, default=False
|
CONF_ENABLE_LWIP_BRIDGE_INTERFACE, default=False
|
||||||
@@ -773,7 +773,7 @@ async def to_code(config):
|
|||||||
and not advanced[CONF_ENABLE_LWIP_DHCP_SERVER]
|
and not advanced[CONF_ENABLE_LWIP_DHCP_SERVER]
|
||||||
):
|
):
|
||||||
add_idf_sdkconfig_option("CONFIG_LWIP_DHCPS", False)
|
add_idf_sdkconfig_option("CONFIG_LWIP_DHCPS", False)
|
||||||
if not advanced.get(CONF_ENABLE_LWIP_MDNS_QUERIES, False):
|
if not advanced.get(CONF_ENABLE_LWIP_MDNS_QUERIES, True):
|
||||||
add_idf_sdkconfig_option("CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES", False)
|
add_idf_sdkconfig_option("CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES", False)
|
||||||
if not advanced.get(CONF_ENABLE_LWIP_BRIDGE_INTERFACE, False):
|
if not advanced.get(CONF_ENABLE_LWIP_BRIDGE_INTERFACE, False):
|
||||||
add_idf_sdkconfig_option("CONFIG_LWIP_BRIDGEIF_MAX_PORTS", 0)
|
add_idf_sdkconfig_option("CONFIG_LWIP_BRIDGEIF_MAX_PORTS", 0)
|
||||||
|
|||||||
@@ -496,17 +496,17 @@ float BLEClientBase::parse_char_value(uint8_t *value, uint16_t length) {
|
|||||||
if (length > 2) {
|
if (length > 2) {
|
||||||
return (float) encode_uint16(value[1], value[2]);
|
return (float) encode_uint16(value[1], value[2]);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case 0x7: // uint24.
|
case 0x7: // uint24.
|
||||||
if (length > 3) {
|
if (length > 3) {
|
||||||
return (float) encode_uint24(value[1], value[2], value[3]);
|
return (float) encode_uint24(value[1], value[2], value[3]);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case 0x8: // uint32.
|
case 0x8: // uint32.
|
||||||
if (length > 4) {
|
if (length > 4) {
|
||||||
return (float) encode_uint32(value[1], value[2], value[3], value[4]);
|
return (float) encode_uint32(value[1], value[2], value[3], value[4]);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case 0xC: // int8.
|
case 0xC: // int8.
|
||||||
return (float) ((int8_t) value[1]);
|
return (float) ((int8_t) value[1]);
|
||||||
case 0xD: // int12.
|
case 0xD: // int12.
|
||||||
@@ -514,12 +514,12 @@ float BLEClientBase::parse_char_value(uint8_t *value, uint16_t length) {
|
|||||||
if (length > 2) {
|
if (length > 2) {
|
||||||
return (float) ((int16_t) (value[1] << 8) + (int16_t) value[2]);
|
return (float) ((int16_t) (value[1] << 8) + (int16_t) value[2]);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case 0xF: // int24.
|
case 0xF: // int24.
|
||||||
if (length > 3) {
|
if (length > 3) {
|
||||||
return (float) ((int32_t) (value[1] << 16) + (int32_t) (value[2] << 8) + (int32_t) (value[3]));
|
return (float) ((int32_t) (value[1] << 16) + (int32_t) (value[2] << 8) + (int32_t) (value[3]));
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
case 0x10: // int32.
|
case 0x10: // int32.
|
||||||
if (length > 4) {
|
if (length > 4) {
|
||||||
return (float) ((int32_t) (value[1] << 24) + (int32_t) (value[2] << 16) + (int32_t) (value[3] << 8) +
|
return (float) ((int32_t) (value[1] << 24) + (int32_t) (value[2] << 16) + (int32_t) (value[3] << 8) +
|
||||||
|
|||||||
@@ -310,11 +310,7 @@ async def to_code(config):
|
|||||||
cg.add_define("USE_ESP32_CAMERA")
|
cg.add_define("USE_ESP32_CAMERA")
|
||||||
|
|
||||||
if CORE.using_esp_idf:
|
if CORE.using_esp_idf:
|
||||||
add_idf_component(
|
add_idf_component(name="espressif/esp32-camera", ref="2.0.15")
|
||||||
name="esp32-camera",
|
|
||||||
repo="https://github.com/espressif/esp32-camera.git",
|
|
||||||
ref="v2.0.15",
|
|
||||||
)
|
|
||||||
|
|
||||||
for conf in config.get(CONF_ON_STREAM_START, []):
|
for conf in config.get(CONF_ON_STREAM_START, []):
|
||||||
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], var)
|
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], var)
|
||||||
|
|||||||
@@ -88,12 +88,7 @@ async def to_code(config):
|
|||||||
if CORE.using_esp_idf and CORE.data[KEY_CORE][KEY_FRAMEWORK_VERSION] >= cv.Version(
|
if CORE.using_esp_idf and CORE.data[KEY_CORE][KEY_FRAMEWORK_VERSION] >= cv.Version(
|
||||||
5, 0, 0
|
5, 0, 0
|
||||||
):
|
):
|
||||||
add_idf_component(
|
add_idf_component(name="espressif/mdns", ref="1.8.2")
|
||||||
name="mdns",
|
|
||||||
repo="https://github.com/espressif/esp-protocols.git",
|
|
||||||
ref="mdns-v1.8.2",
|
|
||||||
path="components/mdns",
|
|
||||||
)
|
|
||||||
|
|
||||||
cg.add_define("USE_MDNS")
|
cg.add_define("USE_MDNS")
|
||||||
|
|
||||||
|
|||||||
@@ -449,11 +449,7 @@ async def to_code(config):
|
|||||||
cg.add_define("USE_MICRO_WAKE_WORD")
|
cg.add_define("USE_MICRO_WAKE_WORD")
|
||||||
cg.add_define("USE_OTA_STATE_CALLBACK")
|
cg.add_define("USE_OTA_STATE_CALLBACK")
|
||||||
|
|
||||||
esp32.add_idf_component(
|
esp32.add_idf_component(name="espressif/esp-tflite-micro", ref="1.3.3~1")
|
||||||
name="esp-tflite-micro",
|
|
||||||
repo="https://github.com/espressif/esp-tflite-micro",
|
|
||||||
ref="v1.3.3.1",
|
|
||||||
)
|
|
||||||
|
|
||||||
cg.add_build_flag("-DTF_LITE_STATIC_MEMORY")
|
cg.add_build_flag("-DTF_LITE_STATIC_MEMORY")
|
||||||
cg.add_build_flag("-DTF_LITE_DISABLE_X86_NEON")
|
cg.add_build_flag("-DTF_LITE_DISABLE_X86_NEON")
|
||||||
|
|||||||
@@ -584,7 +584,7 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_INIT);
|
this->nci_fsm_set_state_(NCIState::NFCC_INIT);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_INIT:
|
case NCIState::NFCC_INIT:
|
||||||
if (this->init_core_() != nfc::STATUS_OK) {
|
if (this->init_core_() != nfc::STATUS_OK) {
|
||||||
@@ -594,7 +594,7 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_CONFIG);
|
this->nci_fsm_set_state_(NCIState::NFCC_CONFIG);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_CONFIG:
|
case NCIState::NFCC_CONFIG:
|
||||||
if (this->send_init_config_() != nfc::STATUS_OK) {
|
if (this->send_init_config_() != nfc::STATUS_OK) {
|
||||||
@@ -605,7 +605,7 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
this->config_refresh_pending_ = false;
|
this->config_refresh_pending_ = false;
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_SET_DISCOVER_MAP);
|
this->nci_fsm_set_state_(NCIState::NFCC_SET_DISCOVER_MAP);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_SET_DISCOVER_MAP:
|
case NCIState::NFCC_SET_DISCOVER_MAP:
|
||||||
if (this->set_discover_map_() != nfc::STATUS_OK) {
|
if (this->set_discover_map_() != nfc::STATUS_OK) {
|
||||||
@@ -615,7 +615,7 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_SET_LISTEN_MODE_ROUTING);
|
this->nci_fsm_set_state_(NCIState::NFCC_SET_LISTEN_MODE_ROUTING);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_SET_LISTEN_MODE_ROUTING:
|
case NCIState::NFCC_SET_LISTEN_MODE_ROUTING:
|
||||||
if (this->set_listen_mode_routing_() != nfc::STATUS_OK) {
|
if (this->set_listen_mode_routing_() != nfc::STATUS_OK) {
|
||||||
@@ -625,7 +625,7 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::RFST_IDLE);
|
this->nci_fsm_set_state_(NCIState::RFST_IDLE);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::RFST_IDLE:
|
case NCIState::RFST_IDLE:
|
||||||
if (this->nci_state_error_ == NCIState::RFST_DISCOVERY) {
|
if (this->nci_state_error_ == NCIState::RFST_DISCOVERY) {
|
||||||
@@ -650,14 +650,14 @@ void PN7150::nci_fsm_transition_() {
|
|||||||
|
|
||||||
case NCIState::RFST_W4_HOST_SELECT:
|
case NCIState::RFST_W4_HOST_SELECT:
|
||||||
select_endpoint_();
|
select_endpoint_();
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
// All cases below are waiting for NOTIFICATION messages
|
// All cases below are waiting for NOTIFICATION messages
|
||||||
case NCIState::RFST_DISCOVERY:
|
case NCIState::RFST_DISCOVERY:
|
||||||
if (this->config_refresh_pending_) {
|
if (this->config_refresh_pending_) {
|
||||||
this->refresh_core_config_();
|
this->refresh_core_config_();
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::RFST_LISTEN_ACTIVE:
|
case NCIState::RFST_LISTEN_ACTIVE:
|
||||||
case NCIState::RFST_LISTEN_SLEEP:
|
case NCIState::RFST_LISTEN_SLEEP:
|
||||||
|
|||||||
@@ -609,7 +609,7 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_INIT);
|
this->nci_fsm_set_state_(NCIState::NFCC_INIT);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_INIT:
|
case NCIState::NFCC_INIT:
|
||||||
if (this->init_core_() != nfc::STATUS_OK) {
|
if (this->init_core_() != nfc::STATUS_OK) {
|
||||||
@@ -619,7 +619,7 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_CONFIG);
|
this->nci_fsm_set_state_(NCIState::NFCC_CONFIG);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_CONFIG:
|
case NCIState::NFCC_CONFIG:
|
||||||
if (this->send_init_config_() != nfc::STATUS_OK) {
|
if (this->send_init_config_() != nfc::STATUS_OK) {
|
||||||
@@ -630,7 +630,7 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
this->config_refresh_pending_ = false;
|
this->config_refresh_pending_ = false;
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_SET_DISCOVER_MAP);
|
this->nci_fsm_set_state_(NCIState::NFCC_SET_DISCOVER_MAP);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_SET_DISCOVER_MAP:
|
case NCIState::NFCC_SET_DISCOVER_MAP:
|
||||||
if (this->set_discover_map_() != nfc::STATUS_OK) {
|
if (this->set_discover_map_() != nfc::STATUS_OK) {
|
||||||
@@ -640,7 +640,7 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::NFCC_SET_LISTEN_MODE_ROUTING);
|
this->nci_fsm_set_state_(NCIState::NFCC_SET_LISTEN_MODE_ROUTING);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::NFCC_SET_LISTEN_MODE_ROUTING:
|
case NCIState::NFCC_SET_LISTEN_MODE_ROUTING:
|
||||||
if (this->set_listen_mode_routing_() != nfc::STATUS_OK) {
|
if (this->set_listen_mode_routing_() != nfc::STATUS_OK) {
|
||||||
@@ -650,7 +650,7 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
} else {
|
} else {
|
||||||
this->nci_fsm_set_state_(NCIState::RFST_IDLE);
|
this->nci_fsm_set_state_(NCIState::RFST_IDLE);
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::RFST_IDLE:
|
case NCIState::RFST_IDLE:
|
||||||
if (this->nci_state_error_ == NCIState::RFST_DISCOVERY) {
|
if (this->nci_state_error_ == NCIState::RFST_DISCOVERY) {
|
||||||
@@ -675,14 +675,14 @@ void PN7160::nci_fsm_transition_() {
|
|||||||
|
|
||||||
case NCIState::RFST_W4_HOST_SELECT:
|
case NCIState::RFST_W4_HOST_SELECT:
|
||||||
select_endpoint_();
|
select_endpoint_();
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
// All cases below are waiting for NOTIFICATION messages
|
// All cases below are waiting for NOTIFICATION messages
|
||||||
case NCIState::RFST_DISCOVERY:
|
case NCIState::RFST_DISCOVERY:
|
||||||
if (this->config_refresh_pending_) {
|
if (this->config_refresh_pending_) {
|
||||||
this->refresh_core_config_();
|
this->refresh_core_config_();
|
||||||
}
|
}
|
||||||
// fall through
|
[[fallthrough]];
|
||||||
|
|
||||||
case NCIState::RFST_LISTEN_ACTIVE:
|
case NCIState::RFST_LISTEN_ACTIVE:
|
||||||
case NCIState::RFST_LISTEN_SLEEP:
|
case NCIState::RFST_LISTEN_SLEEP:
|
||||||
|
|||||||
@@ -445,8 +445,7 @@ template<typename T> stm32_err_t stm32_check_ack_timeout(const stm32_err_t s_err
|
|||||||
return STM32_ERR_OK;
|
return STM32_ERR_OK;
|
||||||
case STM32_ERR_NACK:
|
case STM32_ERR_NACK:
|
||||||
log();
|
log();
|
||||||
// TODO: c++17 [[fallthrough]]
|
[[fallthrough]];
|
||||||
/* fallthrough */
|
|
||||||
default:
|
default:
|
||||||
return STM32_ERR_UNKNOWN;
|
return STM32_ERR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ void ComponentIterator::advance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (advance_platform) {
|
if (advance_platform) {
|
||||||
this->state_ = static_cast<IteratorState>(static_cast<uint16_t>(this->state_) + 1);
|
this->state_ = static_cast<IteratorState>(static_cast<uint8_t>(this->state_) + 1);
|
||||||
this->at_ = 0;
|
this->at_ = 0;
|
||||||
} else if (success) {
|
} else if (success) {
|
||||||
this->at_++;
|
this->at_++;
|
||||||
|
|||||||
@@ -1,16 +1,10 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
esp-tflite-micro:
|
espressif/esp-tflite-micro:
|
||||||
git: https://github.com/espressif/esp-tflite-micro.git
|
version: 1.3.3~1
|
||||||
version: v1.3.1
|
espressif/esp32-camera:
|
||||||
esp32_camera:
|
version: 2.0.15
|
||||||
git: https://github.com/espressif/esp32-camera.git
|
espressif/mdns:
|
||||||
version: v2.0.15
|
version: 1.8.2
|
||||||
mdns:
|
|
||||||
git: https://github.com/espressif/esp-protocols.git
|
|
||||||
version: mdns-v1.8.2
|
|
||||||
path: components/mdns
|
|
||||||
rules:
|
|
||||||
- if: "idf_version >=5.0"
|
|
||||||
espressif/esp_wifi_remote:
|
espressif/esp_wifi_remote:
|
||||||
version: 0.10.2
|
version: 0.10.2
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user