delphiki / AirStatus

Check AirPods battery levels on Linux
GNU General Public License v3.0
131 stars 23 forks source link

Better hex data interpretation #2

Closed lgoette closed 2 years ago

lgoette commented 2 years ago

I improved the interpretation of the hexadecimal data and the receiving of the data

treibholz commented 2 years ago

This looks good, now I can see battery charges > 90% (before it showed -1, if the battery was full.)

lgoette commented 2 years ago

Thanks. It also shows the the individual charging stat and not just one/both. The biggest change is that there is a bit which declares if left and right are flipped. This is essential for the right interpretation of the data.

delphiki commented 2 years ago

Thanks a lot @lgoette, I never found time to fix the flipped data, looks great and doesn't break compatibility with https://github.com/delphiki/gnome-airpods-battery-status, awesome job!