summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/availablewidgetsmodel.cpp1
-rw-r--r--src/metawatchbletransport.cpp5
-rw-r--r--src/salmeta.cpp4
3 files changed, 9 insertions, 1 deletions
diff --git a/src/availablewidgetsmodel.cpp b/src/availablewidgetsmodel.cpp
index b95e79a..37232dc 100644
--- a/src/availablewidgetsmodel.cpp
+++ b/src/availablewidgetsmodel.cpp
@@ -1,3 +1,4 @@
+#include <QtCore/QDebug>
#include <sailfishapp.h>
#include "availablewidgetsmodel.h"
diff --git a/src/metawatchbletransport.cpp b/src/metawatchbletransport.cpp
index 9a56893..6df6c2a 100644
--- a/src/metawatchbletransport.cpp
+++ b/src/metawatchbletransport.cpp
@@ -1,3 +1,4 @@
+#include "metawatch.h"
#include "metawatchbletransport.h"
const GatoUUID MetaWatchBLETransport::ServiceUuid(quint16(0x8880));
@@ -24,8 +25,10 @@ MetaWatchBLETransport::~MetaWatchBLETransport()
void MetaWatchBLETransport::sendMessage(quint8 type, quint8 options, const QByteArray &payload)
{
QByteArray packet = encode(type, options, payload);
+ bool need_ack = type != MetaWatch::MessageWriteLcdBuffer;
qDebug() << "Send:" << packet.toHex();
- _dev->writeValue(_out, packet);
+ _dev->writeValue(_out, packet,
+ need_ack ? GatoPeripheral::WriteWithResponse : GatoPeripheral::WriteWithoutResponse);
}
void MetaWatchBLETransport::connectDevice()
diff --git a/src/salmeta.cpp b/src/salmeta.cpp
index 914f117..7bc14ae 100644
--- a/src/salmeta.cpp
+++ b/src/salmeta.cpp
@@ -1,5 +1,9 @@
#include <QtCore/QDebug>
+#include <QtGui/QGuiApplication>
#include <QtGui/QFontDatabase>
+#include <QtQml/QQmlComponent>
+#include <QtQml/QQmlContext>
+#include <QtQuick/QQuickView>
#include <sailfishapp.h>
#include "controller.h"