summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2020-09-16 10:12:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-17 07:54:35 -0700
commit981c1cb1d30ff68baf4c01179866c4b827747960 (patch)
treeb280923b2edc7cb4fbf23a492fa4d7f868283d14 /core/qt-ble.cpp
parente927c70b8930af3141bd100e2dcb8f833e7efcd9 (diff)
downloadsubsurface-981c1cb1d30ff68baf4c01179866c4b827747960.tar.gz
Fix 'uud' typo in BLE uuid matching code
Silly typo with a missing 'i' in 'uuid' that happened when I wrote this code originally, and that compiled fine thanks to the error being duplicated with cut-and-paste to all relevant places. Fix it now, since I'll extend the uuid matching to the actual characteristics for the McLean Extreme. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r--core/qt-ble.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp
index 10cae7a32..2df22b73e 100644
--- a/core/qt-ble.cpp
+++ b/core/qt-ble.cpp
@@ -101,11 +101,11 @@ void BLEObject::writeCompleted(const QLowEnergyDescriptor&, const QByteArray&)
desc_written++;
}
-struct uud_match {
+struct uuid_match {
const char *uuid, *details;
};
-static const char *match_service(const QBluetoothUuid &service, const struct uud_match *array)
+static const char *match_service(const QBluetoothUuid &service, const struct uuid_match *array)
{
const char *uuid;
@@ -134,7 +134,7 @@ static const char *match_service(const QBluetoothUuid &service, const struct uud
// not like legacy BT didn't have a standard serial encapsulation.
// Oh. It did, didn't it?
//
-static const struct uud_match serial_service_uuids[] = {
+static const struct uuid_match serial_service_uuids[] = {
{ "0000fefb-0000-1000-8000-00805f9b34fb", "Heinrichs-Weikamp" },
{ "544e326b-5b72-c6b0-1c46-41c1bc448118", "Mares BlueLink Pro" },
{ "6e400001-b5a3-f393-e0a9-e50e24dcca9e", "Nordic Semi UART" },
@@ -150,7 +150,7 @@ static const struct uud_match serial_service_uuids[] = {
// that a service is NOT a serial service because we've seen that
// people use it for firmware upgrades.
//
-static const struct uud_match upgrade_service_uuids[] = {
+static const struct uuid_match upgrade_service_uuids[] = {
{ "00001530-1212-efde-1523-785feabcd123", "Nordic Upgrade" },
{ "9e5d1e47-5c13-43a0-8635-82ad38a1386f", "Broadcom Upgrade #1" },
{ "a86abc2d-d44c-442e-99f7-80059a873e36", "Broadcom Upgrade #2" },