summaryrefslogtreecommitdiff
path: root/metawatch
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch')
-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 {