Update telem.c

pull/57/head
alanbjohnston 5 years ago committed by GitHub
parent 3cba4929b0
commit d84d1de3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -249,7 +249,7 @@ int test_i2c_bus(int bus)
int output = 1; int output = 1;
char busDev[20] = "/dev/i2c-"; char busDev[20] = "/dev/i2c-";
char busString[25]; char busString[25];
char *busS; char busS[5];
snprintf(busS, 5, "%d", bus); snprintf(busS, 5, "%d", bus);
strcat (busDev, busS); strcat (busDev, busS);
printf("Bus Dev String: %s \n", busDev); printf("Bus Dev String: %s \n", busDev);

Loading…
Cancel
Save

Powered by TurnKey Linux.