diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-14 23:21:26 +0100 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-14 23:21:26 +0100 |
commit | da886ff9f485f96962e508caa274d01df2f03583 (patch) | |
tree | 0f9d8d65e13bcc93c3997985728ecdcbb0e2b416 /src | |
parent | 952dc14500d9f0e692e026d727d20c8a2f3f7c13 (diff) |
ant: try logging MESG_STARTUP_MSG_ID
Diffstat (limited to 'src')
-rw-r--r-- | src/AntMessenger.cpp | 8 | ||||
-rw-r--r-- | src/antdefs.hpp | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/AntMessenger.cpp b/src/AntMessenger.cpp index cb6ce47..3137674 100644 --- a/src/AntMessenger.cpp +++ b/src/AntMessenger.cpp @@ -1069,6 +1069,14 @@ bool AntMessenger::onMessage(std::vector<AntMessage> v) AntChannel& pc=chs[chan]; pc.onMsg(m); } + else if(m.getMsgId()==MESG_STARTUP_MSG_ID) + { + if(m.getLenPayload()>=1) + { + uint8_t startup=m.getPayloadRef()[0]; + lprintf(antpm::LOG_DBG2, "startup 0x%02x\n", startup); + } + } else { lprintf(antpm::LOG_WARN, "unhandled 0x%0x\n", (int)m.getMsgId()); diff --git a/src/antdefs.hpp b/src/antdefs.hpp index 52b1223..a511242 100644 --- a/src/antdefs.hpp +++ b/src/antdefs.hpp @@ -75,7 +75,7 @@ typedef uint32_t uint; #define MESG_GET_SERIAL_NUM_ID 0x61 - +#define MESG_STARTUP_MSG_ID 0x6f #define MESG_DATA_SIZE 30 |