From da87d595c52b21391158e49a8d86038e1160aa7b Mon Sep 17 00:00:00 2001 From: joseogandoj <69017190+joseogandoj@users.noreply.github.com> Date: Thu, 30 Jul 2020 16:21:45 -0500 Subject: [PATCH] Update testj1939.c When receiving multi chunk messages, only the first 8 are printed. Simple coding mistake. Should print dat[i] instead of dat[j] --- testj1939.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testj1939.c b/testj1939.c index 80b2d0b..8724349 100644 --- a/testj1939.c +++ b/testj1939.c @@ -302,7 +302,7 @@ int main(int argc, char *argv[]) printf("\n%05x ", j); j = 0; } - printf(" %02x", dat[j]); + printf(" %02x", dat[i]); } printf("\n"); }