From c2eccfbc371ad034402e308d11b5499828e6d7b1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 17:54:07 -0400 Subject: [PATCH] Update telem.c --- afsk/telem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/afsk/telem.c b/afsk/telem.c index 5cca8d95..ada3cbd3 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -147,6 +147,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { printf("OUTPUT: %s", buf); } */ + getc(i2cdetect); int error = pclose(i2cdetect)/256; printf("%s error: %d \n", &command, error); @@ -161,6 +162,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { printf("OUTPUT: %s", buf); } */ + getc(i2cdetect); error = pclose(i2cdetect2)/256; printf("%s error: %d \n", &command, error);