We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c85038c commit b4a1ec4Copy full SHA for b4a1ec4
main/src/user/ota.c
@@ -294,6 +294,8 @@ void ota_exec(const char *data, uint32_t len)
294
#endif
295
}
296
297
+ esp_bt_gap_set_scan_mode(ESP_BT_NON_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);
298
+
299
EventBits_t uxBits = xEventGroupGetBits(user_event_group);
300
if (!(uxBits & BT_A2DP_IDLE_BIT)) {
301
esp_a2d_sink_disconnect(a2d_remote_bda);
@@ -302,7 +304,12 @@ void ota_exec(const char *data, uint32_t len)
302
304
esp_ble_gatts_close(gatts_profile_tbl[PROFILE_IDX_OTA].gatts_if,
303
305
gatts_profile_tbl[PROFILE_IDX_OTA].conn_id);
306
- os_pwr_reset_wait(BT_A2DP_IDLE_BIT | BLE_GATTS_IDLE_BIT);
307
+ os_pwr_reset_wait(
308
+ BT_A2DP_IDLE_BIT | BLE_GATTS_IDLE_BIT
309
+#ifdef CONFIG_ENABLE_AUDIO_PROMPT
310
+ | AUDIO_PLAYER_IDLE_BIT
311
+#endif
312
+ );
313
314
update_handle = 0;
315
0 commit comments