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]
pull/229/head
joseogandoj 2020-07-30 16:21:45 -05:00 committed by GitHub
parent af531c3d52
commit da87d595c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ int main(int argc, char *argv[])
printf("\n%05x ", j); printf("\n%05x ", j);
j = 0; j = 0;
} }
printf(" %02x", dat[j]); printf(" %02x", dat[i]);
} }
printf("\n"); printf("\n");
} }