mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use SSRF_CUSTOM_IO v2 to implement device data quirks for BLE GATT
Right now we have a quirk for Shearwater devices to set the random address flag, but also to handle the differences at read/write time. With this, I can finally download from both the Suunto EON Steel and the Shearwater Perdix AI with the same binary. It's not *pretty*, but it works. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d01b7bf891
commit
526595644f
2 changed files with 23 additions and 5 deletions
|
@ -11,7 +11,7 @@ class BLEObject : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BLEObject(QLowEnergyController *c);
|
||||
BLEObject(QLowEnergyController *c, dc_user_device_t *);
|
||||
~BLEObject();
|
||||
dc_status_t write(const void* data, size_t size, size_t *actual);
|
||||
dc_status_t read(void* data, size_t size, size_t *actual);
|
||||
|
@ -32,6 +32,7 @@ private:
|
|||
QLowEnergyController *controller = nullptr;
|
||||
QList<QByteArray> receivedPackets;
|
||||
QEventLoop waitForPacket;
|
||||
dc_user_device_t *device;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue