Skip to content

Commit

Permalink
Merge pull request #80 from delaosa/Plantronics
Browse files Browse the repository at this point in the history
update CIND response
  • Loading branch information
TheWeirdDev committed May 14, 2022
2 parents 4f49f75 + 4cfe9a4 commit 9cc9cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluetooth_battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def _perform_query(self) -> int:
sock.send(b"+BRSF: 1024")
sock.send(b"OK")
elif b"CIND=" in line:
sock.send(b"+CIND: (\"battchg\",(0-5))")
sock.send(b"+CIND:(\"service\",(0-1)),(\"call\",(0-1)),(\"callsetup\",(0-3)),(\"callheld\",(0-2)),(\"battchg\",(0-5))")
sock.send(b"OK")
elif b"CIND?" in line:
sock.send(b"+CIND: 5")
sock.send(b"+CIND: 0,0,0,0,3")
sock.send(b"OK")
elif b"BIND=?" in line:
# Announce that we support the battery level HF indicator
Expand Down

0 comments on commit 9cc9cf0

Please sign in to comment.