修复了每次重连WiFi和WS成功播放提示音问题
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#define CONTROL_PLANE_STA_RETRY_BASE_DELAY_MS 300
|
||||
|
||||
static const char *TAG = "control_plane_rt";
|
||||
static bool s_wifi_success_prompt_played;
|
||||
|
||||
static int elapsed_ms_since(TickType_t start_tick)
|
||||
{
|
||||
@@ -80,6 +81,11 @@ static int control_plane_normalize_connect_timeout_ms(int timeout_ms, int min_ti
|
||||
|
||||
static void control_plane_play_wifi_success_prompt(void)
|
||||
{
|
||||
if (s_wifi_success_prompt_played) {
|
||||
return;
|
||||
}
|
||||
s_wifi_success_prompt_played = true;
|
||||
|
||||
bool played = false;
|
||||
esp_err_t audio_err = domain_runtime_multimodal_audio_init();
|
||||
if (audio_err != ESP_OK && audio_err != ESP_ERR_INVALID_STATE) {
|
||||
|
||||
Reference in New Issue
Block a user