TheWeirdDev / Bluetooth_Headset_Battery_Level

A python script to get battery level from Bluetooth headsets
GNU General Public License v3.0
760 stars 83 forks source link

after a one commit broken on some devices #86

Open ilyapashuk opened 1 year ago

ilyapashuk commented 1 year ago

hello

the commit https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level/commit/9cc9cf0f8399e2981712bea3fc06e74bf05e7592

thims to break some devices.

after this commit, when I use this script on my headphones, device simply crashes (shuts down unexpectedly).

on the commit:

https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level/commit/4cfe9a43fa7bb2d2c17c23a1c3c48fb2105c5774

all works fine

before the second commit it don't works too.

please reimplement all of that 3 request styles in the current code and allow user to select the mode by adding the special command line flag.