From a5685625035307e644a5454488f1818ac61dea2d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 29 May 2017 12:25:21 -0700 Subject: QML UI: try to match BT names to known dive computers So far this just adds data to the log. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index f10564a94..510866137 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -206,8 +206,14 @@ void QMLManager::mergeLocalRepo() #if BT_SUPPORT void QMLManager::btDeviceDiscovered(const QBluetoothDeviceInfo &device) { - QString newDevice = "Found new device " + device.name() + " (" + device.address().toString() + ")"; - appendTextToLog(newDevice); + QString newDevice = device.name(); + appendTextToLog("Found new device " + newDevice + " (" + device.address().toString() + ")"); + QString vendor, product; + foreach (vendor, productList.keys()) { + if (productList[vendor].contains(newDevice)) { + appendTextToLog("this could be a " + vendor + " " + newDevice); + } + } } #endif -- cgit v1.2.3-70-g09d2