diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 14:57:23 +0100 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 14:57:23 +0100 |
commit | 6794c8c59dc5a0f4e3a8e34923bb0df39ef51039 (patch) | |
tree | c6525ded07813a8b50a1bc513c1b9f28a77a2684 /src | |
parent | a9ac6b57ff2209fefd00d25af3c7ae6d254bfb5e (diff) |
give up restarting sooner
Diffstat (limited to 'src')
-rw-r--r-- | src/AntFr310XT.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/AntFr310XT.cpp b/src/AntFr310XT.cpp index 867c3f1..947b211 100644 --- a/src/AntFr310XT.cpp +++ b/src/AntFr310XT.cpp @@ -301,13 +301,21 @@ AntFr310XT::handleEvents() changeState(ST_ANTFS_BAD); } } +// else if(msgId==MESG_CLOSE_CHANNEL_ID) +// { +// uint8_t msgCode = m.getPayloadRef()[2]; // e.g. CHANNEL_IN_WRONG_STATE +// if(msgCode==CHANNEL_IN_WRONG_STATE) +// { +// changeState(ST_ANTFS_BAD); +// } +// } } } // new state machine if(state==ST_ANTFS_RESTART) { - if(++m_restartCount==80) + if(++m_restartCount==10) stop(); else { |