diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-09-24 16:11:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-24 17:12:58 -0700 |
commit | 1b16d570a1b6700295153bd6597b148b65000458 (patch) | |
tree | 29b7830b66ee22fdb7b61db79956b37a0bd87772 /mobile-widgets | |
parent | ebb3fc8a0cc68036afa6cfc09bbc7edeb3e36356 (diff) | |
download | subsurface-1b16d570a1b6700295153bd6597b148b65000458.tar.gz |
qt-ble: re-organize how we pick the GATT characteristics to read and write
We used to just blindly pick "first" and "last" characteristic from the
preferred service, and that was stupid but happened to work for the dive
computers we supported. Note that for some of them, "first" and "last"
was actually the *same* characteristic, since it could be a single one
that supported both.
However, this first/last hack definitely doesn't work for the Mares
BlueLink BLE dongle, and it's really all pretty wrong anyway.
So re-organize the code to actually look at the properties of the
characteristics. I don't have a BlueLink to test with, but my EON Core
and Shearwater Perdix AI are still happy with this, and the code
conceptually makes a lot more sense.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mobile-widgets')
0 files changed, 0 insertions, 0 deletions