summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJavier S. Pedro <dev.git@javispedro.com>2014-09-17 00:09:03 +0200
committerJavier S. Pedro <dev.git@javispedro.com>2014-09-17 00:09:03 +0200
commitffa3bc65f508aa805c82db28f90b8e0776846c1a (patch)
treedc8c9aea8d03f85e2d7b9399b9bb03cb781f208d /src
parentd9f140ec45f91a8567b6d8e2ce69fe853ae8b3a9 (diff)
downloadsalmeta-ffa3bc65f508aa805c82db28f90b8e0776846c1a.tar.gz
salmeta-ffa3bc65f508aa805c82db28f90b8e0776846c1a.zip
Bump version, fix release build issues, fix writeLcdBuffer throughput
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"