From b3a5146aad787501eecd55a791c91b064de68e9d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:27:54 -0400 Subject: [PATCH] Update telem.c --- afsk/telem.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/afsk/telem.c b/afsk/telem.c index 89125f08..62756e6e 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -133,14 +133,16 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { pclose(i2cdetect); printf("2\n"); i2cdetect = open("echo $?", "r"); - printf("i2cdetect 0 output: %d\n", getc(i2cdetect)); +// printf("i2cdetect 0 output: %d\n", getc(i2cdetect)); int error = pclose(i2cdetect)/256; printf("i2cdetect 0 error: %d \n", error); i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 1", "r"); + printf("3\n"); pclose(i2cdetect); + printf("4\n"); i2cdetect = open("echo $?", "r"); - printf("i2cdetect 1 output: %d\n", getc(i2cdetect)); +// printf("i2cdetect 1 output: %d\n", getc(i2cdetect)); error = pclose(i2cdetect)/256; printf("i2cdetect 1 error: %d \n", error);