diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:37:45 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:37:45 +0200 |
commit | 43af250113b048a5a110b027f4525dc994af231f (patch) | |
tree | ef5f22d54306672da09ea553b4bd813976439217 /src | |
parent | 02972ed370063c8bd215bf1e907da9dc1abef1d1 (diff) | |
download | salmeta-43af250113b048a5a110b027f4525dc994af231f.tar.gz salmeta-43af250113b048a5a110b027f4525dc994af231f.zip |
log the actually used transport, not the setting
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.cpp | 9 |
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) { |