]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
candump: Fix displaying of EFF frame IDs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 3 May 2016 11:22:55 +0000 (13:22 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 3 May 2016 11:22:55 +0000 (13:22 +0200)
rpp-test-sw/commands/cmd_can.c

index 3a65e3272d8686034afbcf9057d8baf7c6a98064..d6801b38c21077eb5eb216b0312f9ea317739c6d 100644 (file)
@@ -749,7 +749,7 @@ int cmd_do_can_dump(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
                if (rx_ind) {
                        if (rpp_can_read(controller_id-1, &pdu) == SUCCESS) {
                                if (pdu.id & CAN_EFF_FLAG)
-                                       rpp_sci_printf("can%u  %08X  [%u]  ", controller_id & (~CAN_EFF_FLAG), pdu.id, pdu.dlc);
+                                       rpp_sci_printf("can%u  %08X  [%u]  ", controller_id, pdu.id & (~CAN_EFF_FLAG), pdu.dlc);
                                else
                                        rpp_sci_printf("can%u  %03X  [%u]  ", controller_id, pdu.id, pdu.dlc);