diff options
Diffstat (limited to 'src/controller.cpp')
-rw-r--r-- | src/controller.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index a5ff22d..f4a2b09 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -16,6 +16,7 @@ Controller::Controller(const QString &settingsPrefix, QQuickView *view, QObject _settings(new MDConfGroup(this)), _metawatch(0), _reconnect(new ReconnectTimer(this)), + _monitor(NotificationMonitor::instance()), _widgets(new WidgetInfoModel(settingsPrefix, this)), _curMode(MetaWatch::WatchModeIdle), _curPage(0), _batteryCharge(0), _batteryCharging(false) @@ -92,6 +93,8 @@ void Controller::connectToAddress(const QString &address) connect(_metawatch, &MetaWatch::batteryStatus, this, &Controller::handleMetaWatchBatteryStatus); connect(_reconnect, &ReconnectTimer::tryReconnect, _metawatch, &MetaWatch::connectDevice); + qDebug() << "Scheduling initial connection attempt to" << _address; + _reconnect->scheduleNextAttempt(); } |