From bc6ff48c513d03609088ba91bdaf87d4cd778053 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 17:52:49 -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 d31c96bf..5cca8d95 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -143,9 +143,10 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { // printf("2\n"); // i2cdetect = popen("echo $?", "r"); // printf("getc i2cdetect 1 output: %d\n", getc(i2cdetect)); - while (fgets(buf, BUFSIZE, i2cdetect) != NULL) { +/* while (fgets(buf, BUFSIZE, i2cdetect) != NULL) { printf("OUTPUT: %s", buf); } +*/ int error = pclose(i2cdetect)/256; printf("%s error: %d \n", &command, error); @@ -156,9 +157,10 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { // printf("2\n"); // i2cdetect = popen("echo $?", "r"); // printf("getc echo output: %d\n", getc(i2cdetect)); - while (fgets(buf, BUFSIZE, i2cdetect2) != NULL) { +/* while (fgets(buf, BUFSIZE, i2cdetect2) != NULL) { printf("OUTPUT: %s", buf); } +*/ error = pclose(i2cdetect2)/256; printf("%s error: %d \n", &command, error);