mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
feat(ble_audio): Miscellaneous update for verifying with PTS cases
This commit is contained in:
@@ -461,7 +461,7 @@ int example_audio_tx_scheduler_start(example_audio_tx_scheduler_t *scheduler,
|
||||
assert(scheduler);
|
||||
assert(period_us > 0);
|
||||
|
||||
return k_work_schedule_periodic(&scheduler->timer, (uint32_t)(period_us / 1000));
|
||||
return k_work_schedule_periodic_us(&scheduler->timer, period_us);
|
||||
}
|
||||
|
||||
int example_audio_tx_scheduler_stop(example_audio_tx_scheduler_t *scheduler)
|
||||
|
||||
@@ -225,10 +225,9 @@ void bap_broadcast_pa_sync(esp_ble_audio_gap_app_event_t *event)
|
||||
{
|
||||
int err;
|
||||
|
||||
pa_syncing = false; /* Mark PA sync as completed */
|
||||
|
||||
if (event->pa_sync.status) {
|
||||
ESP_LOGE(TAG, "PA sync failed, status %d", event->pa_sync.status);
|
||||
pa_syncing = false; /* attempt failed; let a fresh scan report retry */
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -260,6 +259,7 @@ void bap_broadcast_pa_lost(esp_ble_audio_gap_app_event_t *event)
|
||||
sync_handle, event->pa_sync_lost.reason);
|
||||
|
||||
sync_handle = PA_SYNC_HANDLE_INIT;
|
||||
pa_syncing = false; /* allow the rescan below to sync a fresh broadcaster */
|
||||
|
||||
if (broadcast_sink != NULL) {
|
||||
esp_ble_audio_bap_broadcast_sink_delete(broadcast_sink);
|
||||
|
||||
@@ -67,7 +67,7 @@ int example_iso_tx_scheduler_start(example_iso_tx_scheduler_t *scheduler,
|
||||
assert(scheduler);
|
||||
assert(period_us > 0);
|
||||
|
||||
return k_work_schedule_periodic(&scheduler->timer, (uint32_t)(period_us / 1000));
|
||||
return k_work_schedule_periodic_us(&scheduler->timer, period_us);
|
||||
}
|
||||
|
||||
int example_iso_tx_scheduler_stop(example_iso_tx_scheduler_t *scheduler)
|
||||
|
||||
Reference in New Issue
Block a user