summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-21 17:57:31 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-21 17:57:31 +0200
commitd2e8f4fab19d76e2f00ddbaca0c78ee1276651a6 (patch)
tree22bc66b8ba0d4af7f54f5b0c856ee1851a128108
parent6df11eb1581441e45d18728baf066aa5136042ae (diff)
downloadsowatch-d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6.tar.gz
sowatch-d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6.zip
verified that proto still matches with proto docs
-rw-r--r--metawatch/metawatch.cpp4
-rw-r--r--metawatch/metawatch.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp
index dc30c8b..a4692e5 100644
--- a/metawatch/metawatch.cpp
+++ b/metawatch/metawatch.cpp
@@ -571,6 +571,10 @@ void MetaWatch::handleNvalOperationMessage(const Message& msg)
{
Q_ASSERT(msg.type == NvalOperationResponse);
+ // Nval operation response packet format is:
+ // 2 bytes for id
+ // Rest for contents
+
if (msg.data.size() < 2) {
qWarning() << "NVAL operation response too short";
}
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h
index 109fb23..9e62960 100644
--- a/metawatch/metawatch.h
+++ b/metawatch/metawatch.h
@@ -38,6 +38,7 @@ public:
GetDeviceTypeResponse = 0x02,
GetInformationString = 0x03,
GetInformationStringResponse = 0x04,
+ DiagnosticLoopback = 0x05,
WriteOledBuffer = 0x10,
ChangeOledMode = 0x12,
WriteOledScrollBuffer = 0x13,
@@ -72,7 +73,9 @@ public:
LinkKey = 0x1,
IdleBufferConfiguration = 0x2,
TimeFormat = 0x2009,
- DateFormat = 0x200a
+ DateFormat = 0x200a,
+ DisplaySeconds = 0x200b,
+ Language = 0x200c
};
enum Mode {