Bluetooth samples: unicast audio server: Fix codec initialization
The lc3_enable code was refering to a variable that does not exist.
Fix it.
Issue was introduced in 9c47eb924f
.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
435b8a25d6
commit
4d7c8790d7
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ static int lc3_enable(struct bt_bap_stream *stream, const uint8_t meta[], size_t
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = bt_audio_codec_cfg_get_frame_dur(codec_cfg);
|
||||
ret = bt_audio_codec_cfg_get_frame_dur(stream->codec_cfg);
|
||||
if (ret > 0) {
|
||||
frame_duration_us = bt_audio_codec_cfg_frame_dur_to_frame_dur_us(ret);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue