Update telem.c

pull/51/head
alanbjohnston 6 years ago committed by GitHub
parent 9634ce239d
commit 201a8c0035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -130,8 +130,8 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
printf("Bus size %d \n", pos);
printf("Bus value %d \n", atoi(&bus[pos]));
char command[20] = "timeout 5 i2cdetect -y ";
strcpy (command, &bus[pos]);
char command[50] = "timeout 5 i2cdetect -y ";
strcat (command, &bus[pos]);
FILE *i2cdetect = popen(command, "r");
// printf("1\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.