diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-21 17:57:31 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-21 17:57:31 +0200 |
commit | d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6 (patch) | |
tree | 22bc66b8ba0d4af7f54f5b0c856ee1851a128108 | |
parent | 6df11eb1581441e45d18728baf066aa5136042ae (diff) | |
download | sowatch-d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6.tar.gz sowatch-d2e8f4fab19d76e2f00ddbaca0c78ee1276651a6.zip |
verified that proto still matches with proto docs
-rw-r--r-- | metawatch/metawatch.cpp | 4 | ||||
-rw-r--r-- | metawatch/metawatch.h | 5 |
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 { |