From 981c1cb1d30ff68baf4c01179866c4b827747960 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 16 Sep 2020 10:12:56 -0700 Subject: 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 --- core/qt-ble.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/qt-ble.cpp') 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" }, -- cgit v1.2.3-70-g09d2