From f56eb06c1e0f45f9d8dc585d970b03be8dbe1331 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:54:37 -0400 Subject: [PATCH] Update telem.c --- afsk/telem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/telem.c b/afsk/telem.c index a3c3727d..252d3065 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -148,7 +148,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { // printf("2\n"); // i2cdetect = popen("echo $?", "r"); // printf("i2cdetect 0 output: %d\n", getc(i2cdetect)); - int error = pclose(i2cdetect2)/256; + error = pclose(i2cdetect2)/256; printf("%s error: %d \n", &command, error); /* printf("3\n");