Skip to content

Commit

Permalink
pybtp/cap: fix flag calculation in cap_broadcast_source_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mringwal authored and sjanc committed Sep 9, 2024
1 parent e26cd24 commit c0e39ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autopts/pybtp/btp/cap.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ def cap_broadcast_source_setup(source_id, broadcast_id, sdu_interval, framing, m

flags = 0x00
if encryption:
flags &= BTP_CAP_BROADCAST_SOURCE_SETUP_FLAG_ENCRYPTION
flags |= BTP_CAP_BROADCAST_SOURCE_SETUP_FLAG_ENCRYPTION

if subgroup_codec_level:
flags &= BTP_CAP_BROADCAST_SOURCE_SETUP_FLAG_SUBGROUP_CODEC
flags |= BTP_CAP_BROADCAST_SOURCE_SETUP_FLAG_SUBGROUP_CODEC

if broadcast_code is None:
broadcast_code = 16 * b'\x00'
Expand Down

0 comments on commit c0e39ed

Please sign in to comment.