fix(ota): block business interactions during updates

This commit is contained in:
chenjintao
2026-08-21 17:55:10 +08:00
parent a60f98a4c6
commit fdbc956424
5 changed files with 35 additions and 0 deletions
@@ -686,6 +686,10 @@ esp_err_t control_plane_multimodal_request_to_respond(
esp_err_t control_plane_request_cloud_chouqian(void)
{
if (!control_plane_ota_business_interactions_allowed()) {
return ESP_ERR_INVALID_STATE;
}
uint32_t requested_ms = control_plane_now_ms();
portENTER_CRITICAL(&s_multimodal_runtime_lock);