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>
This commit is contained in:
Ramesh Shanmugasundaram
2016-06-30 21:33:16 +02:00
committed by Oliver Hartkopp
parent 8c5cd245f6
commit 42ee04ff64
+1
View File
@@ -357,6 +357,7 @@ int main(int argc, char **argv)
}
while (running) {
frame.flags = 0;
if (count && (--count == 0))
running = 0;