From 8719770a5ee36bdc8f7697057a61b50b6c191fe1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:24:55 -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 d02d0d70..89125f08 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -129,7 +129,9 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { printf("Bus size %d Bu[0] size: %d \n", strlen(bus), sizeof(bus[0]) ); // atoi(bus[(strlen(bus)/sizeof(bus[0])) - 1])); FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r"); + printf("1\n"); pclose(i2cdetect); + printf("2\n"); i2cdetect = open("echo $?", "r"); printf("i2cdetect 0 output: %d\n", getc(i2cdetect)); int error = pclose(i2cdetect)/256;