summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 14:15:09 +0100
committerRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 14:15:09 +0100
commita30fef03b45f83dad5c06bce0d9b1b428a6d965a (patch)
tree957b2283971b3a3debdaa12f2cc90f3fb09ed24e /src
parent0fcfd30e7a44458824482219063195a4dca88129 (diff)
ANT_CloseChannel: accept more responses are success
Diffstat (limited to 'src')
-rw-r--r--src/AntMessenger.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/AntMessenger.cpp b/src/AntMessenger.cpp
index ac3ce00..a9bfa29 100644
--- a/src/AntMessenger.cpp
+++ b/src/AntMessenger.cpp
@@ -180,7 +180,9 @@ AntMessenger::ANT_CloseChannel(uchar chan, const size_t timeout_ms)
uint8_t msgCode;
rv = rv && el.waitForEvent(msgCode, timeout_ms/2);
- rv = rv && (msgCode==EVENT_CHANNEL_CLOSED);
+ rv = rv && (msgCode==EVENT_CHANNEL_CLOSED
+ || msgCode==CHANNEL_IN_WRONG_STATE
+ || msgCode==CHANNEL_NOT_OPENED);
//pc.rmEvListener(&el);