diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-16 12:41:10 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-19 11:36:43 +0200 |
commit | 046af0b8441ff890f644da722507bc77cd3270f7 (patch) | |
tree | 5aebfae8a2fd8f6d4d5d1e467c71b5d6e10d6ccf /CAN-binder/low-can-binding/diagnostic | |
parent | 219b9713c39d36895408e9fb13383d767921e756 (diff) |
Fix: listening on broadcast CAN ID.
Wrong test about CAN ID, it isn't the response ID that is passed as argument
but the broadcast. Little mistake...
Change-Id: I2622c23356802c3108dbf8e6ede07456294834ee
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/diagnostic')
-rw-r--r-- | CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp index fb62dfb..7539634 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp @@ -109,7 +109,7 @@ int diagnostic_manager_t::add_rx_filter(uint32_t can_id) bcm_msg.msg_head.ival2.tv_usec = freq.tv_usec; // If it isn't an OBD2 CAN ID then just add a simple RX_SETUP job - if(can_id != OBD2_FUNCTIONAL_RESPONSE_START) + if(can_id != OBD2_FUNCTIONAL_BROADCAST_ID) { bcm_msg.msg_head.can_id = can_id; |