This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 519c14b34 nimble/audio: Use proper variable within scan delegator 
assert
519c14b34 is described below

commit 519c14b34bd247bebc8177128e50a018f028f160
Author: Szymon Czapracki <[email protected]>
AuthorDate: Mon Sep 23 13:51:03 2024 +0200

    nimble/audio: Use proper variable within scan delegator assert
    
    This commit changes subgroups filed in assert
    used in operation handler in scan delegator.
    Now proper defined array size is used.
---
 nimble/host/audio/src/ble_audio_scan_delegator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/audio/src/ble_audio_scan_delegator.c 
b/nimble/host/audio/src/ble_audio_scan_delegator.c
index db580c639..60e04adc3 100644
--- a/nimble/host/audio/src/ble_audio_scan_delegator.c
+++ b/nimble/host/audio/src/ble_audio_scan_delegator.c
@@ -194,7 +194,7 @@ bass_modify_source_op_handler(struct 
ble_svc_audio_bass_operation *op, void *arg
     sync_opt = &action.source_modify.sync_opt;
     sync_opt_init(sync_opt, op->modify_source.pa_sync, 
op->modify_source.pa_interval, NULL, 0);
 
-    BLE_AUDIO_DBG_ASSERT(sync_opt->num_subgroups < ARRAY_SIZE(subgroups));
+    BLE_AUDIO_DBG_ASSERT(sync_opt->num_subgroups < 
ARRAY_SIZE(sync_opt->subgroups));
 
     for (uint8_t i = 0; i < sync_opt->num_subgroups; i++) {
         sync_opt->subgroups[i].bis_sync = op->modify_source.bis_sync[i];

Reply via email to