summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controller.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/controller.cpp b/src/controller.cpp
index 0f0fb1a..44fe393 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -80,12 +80,15 @@ void Controller::connectToDevice()
const QString address = _settings->value(setting_address).toString();
const QString transport_name = _settings->value(setting_transport).toString();
- qDebug() << "Using transport" << transport_name;
-
- MetaWatch::TransportType transport = MetaWatch::TransportBluetoothLowEnergy; // Default
+ MetaWatch::TransportType transport;
if (transport_name.compare("bluetooth", Qt::CaseInsensitive) == 0) {
+ qDebug() << "Using Bluetooth (RFCOMM)";
transport = MetaWatch::TransportBluetooth;
+ } else {
+ // Default to BLE
+ qDebug() << "Using Bluetooth Low Energy (GATT)";
+ transport = MetaWatch::TransportBluetoothLowEnergy;
}
if (_metawatch) {