From 43af250113b048a5a110b027f4525dc994af231f Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 27 Sep 2014 15:37:45 +0200 Subject: log the actually used transport, not the setting --- src/controller.cpp | 9 ++++++--- 1 file 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) { -- cgit v1.2.3