diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-02-25 19:26:38 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-02-25 19:26:38 +0100 |
commit | 924de2248526430a8fee67582f510fc89a3786d4 (patch) | |
tree | f98639e2fb62c703f0b342ca93c04cde0176eb22 /metawatch/metawatchscanner.cpp | |
parent | 7bc076eda25c4c03648ba3dc021d0d0762e1be8d (diff) | |
download | sowatch-924de2248526430a8fee67582f510fc89a3786d4.tar.gz sowatch-924de2248526430a8fee67582f510fc89a3786d4.zip |
temporarily recognize MetaWatchSW12 as digital
Diffstat (limited to 'metawatch/metawatchscanner.cpp')
-rw-r--r-- | metawatch/metawatchscanner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/metawatch/metawatchscanner.cpp b/metawatch/metawatchscanner.cpp index a34f71b..6a65419 100644 --- a/metawatch/metawatchscanner.cpp +++ b/metawatch/metawatchscanner.cpp @@ -35,7 +35,8 @@ void MetaWatchScanner::handleDiscoveredService(const QBluetoothServiceInfo &info foundInfo["address"] = dev.address().toString(); foundInfo["name"] = deviceName; qDebug() << "metawatch bluetooth scan found:" << deviceName; - if (deviceName.contains("Digital", Qt::CaseInsensitive)) { + if (deviceName.contains("Digital", Qt::CaseInsensitive) || + deviceName.contains("SW12", Qt::CaseInsensitive)) { foundInfo["driver"] = QString("metawatch-digital"); foundInfo["next-watchlet-button"] = QString("A"); emit watchFound(foundInfo); |