Update telem.c

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

@ -134,13 +134,14 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
printf("2\n");
i2cdetect = open("echo $?", "r");
// printf("i2cdetect 0 output: %d\n", getc(i2cdetect));
int error = pclose(i2cdetect)/256;
int error = pclose(i2cdetect);
printf("i2cdetect 0 error: %d \n", error);
i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 1", "r");
printf("3\n");
pclose(i2cdetect);
i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 1", "r");
printf("4\n");
pclose(i2cdetect);
printf("5\n");
i2cdetect = open("echo $?", "r");
// printf("i2cdetect 1 output: %d\n", getc(i2cdetect));
error = pclose(i2cdetect)/256;

Loading…
Cancel
Save

Powered by TurnKey Linux.