Skip to content

Commit

Permalink
btp/vcp: allow set volume with 0..255
Browse files Browse the repository at this point in the history
  • Loading branch information
mringwal authored and sjanc committed Sep 10, 2024
1 parent 6475cb0 commit 89edff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopts/pybtp/btp/vcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def vcp_set_vol(volume, bd_addr_type=None, bd_addr=None):
if isinstance(volume, str):
volume = int(volume)
data = address_to_ba(bd_addr_type, bd_addr)
data.extend(struct.pack("<b", volume))
data.extend(struct.pack("<B", volume))

iutctl.btp_socket.send(*VCP['vcp_set_vol'], data=data)

Expand Down

0 comments on commit 89edff0

Please sign in to comment.