From d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 21 Aug 2012 17:57:31 +0200 Subject: verified that proto still matches with proto docs --- metawatch/metawatch.cpp | 4 ++++ metawatch/metawatch.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3