Compare commits
2 Commits
master
...
Nordic-UAR
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa80ecc77e | ||
|
|
75ad9e5383 |
@ -82,6 +82,16 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
|||||||
product = "Genius";
|
product = "Genius";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (btName.startsWith("CARTESIO_")) {
|
||||||
|
vendor = "Cressi";
|
||||||
|
product = "Cartesio";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (btName.startsWith("GOA_")) {
|
||||||
|
vendor = "Cressi";
|
||||||
|
product = "Goa";
|
||||||
|
}
|
||||||
|
|
||||||
// The Pelagic dive computers (generally branded as Oceanic or Aqualung)
|
// The Pelagic dive computers (generally branded as Oceanic or Aqualung)
|
||||||
// show up with a two-byte model code followed by six bytes of serial
|
// show up with a two-byte model code followed by six bytes of serial
|
||||||
// number. The model code matches the hex model (so "FQ" is 0x4651,
|
// number. The model code matches the hex model (so "FQ" is 0x4651,
|
||||||
|
|||||||
@ -123,6 +123,11 @@ void BLEObject::addService(const QBluetoothUuid &newService)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is it a Nordic UART service?
|
||||||
|
// If so, throw out any earlier services, we'll pick this one
|
||||||
|
if (newService == QUuid("{6e400001-b5a3-f393-e0a9-e50e24dcca9e}"))
|
||||||
|
services.clear();
|
||||||
|
|
||||||
auto service = controller->createServiceObject(newService, this);
|
auto service = controller->createServiceObject(newService, this);
|
||||||
qDebug() << " .. created service object" << service;
|
qDebug() << " .. created service object" << service;
|
||||||
if (service) {
|
if (service) {
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit ebbb91142781ce5bcfc055f5b9439835c4c9d947
|
Subproject commit 4e809aefd89e67da14d55c8587f1ba001486af2a
|
||||||
Loading…
x
Reference in New Issue
Block a user