Fix: listening on broadcast CAN ID.
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 16 May 2017 10:41:10 +0000 (12:41 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 19 May 2017 09:36:43 +0000 (11:36 +0200)
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>
CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp

index fb62dfb..7539634 100644 (file)
@@ -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;