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]
This commit is contained in:
joseogandoj
2020-07-30 16:21:45 -05:00
committed by GitHub
parent af531c3d52
commit da87d595c5
+1 -1
View File
@@ -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");
}