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>
pull/28/head
Ramesh Shanmugasundaram 2016-06-30 20:33:16 +01:00 committed by Oliver Hartkopp
parent 8c5cd245f6
commit 42ee04ff64
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ int main(int argc, char **argv)
}
while (running) {
frame.flags = 0;
if (count && (--count == 0))
running = 0;