]> rtime.felk.cvut.cz Git - can-utils.git/commit
cangen: reset frame flags at the start of iteration (#16)
authorRamesh Shanmugasundaram <rshanmu@users.noreply.github.com>
Thu, 30 Jun 2016 19:33:16 +0000 (20:33 +0100)
committerOliver Hartkopp <socketcan@hartkopp.net>
Thu, 30 Jun 2016 19:33:16 +0000 (21:33 +0200)
commit42ee04ff64a9e88e0f5bc9d1a253fc287a0add8e
tree42e17212c2e8fe7de0dc4b3e739cf4363e367cbb
parent8c5cd245f6d36325f780ab5de2e98b22c6743da4
cangen: reset frame flags at the start of iteration (#16)

This patch fixes a bug in cangen.c

Bug: When used with -m option, if a CAN FD frame with BRS option set is
sent, that flag never gets cleared for the subsequent frames.

Fix: Reset frame.flags at the start of iteration.

Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
cangen.c