cangen: reset frame flags at the start of iteration

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/16/head
Ramesh Shanmugasundaram 2016-03-21 13:58:00 +00:00
parent c689803204
commit 3f6ffbe1f4
1 changed files with 1 additions and 0 deletions

View File

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