From c13851cf95087d079d1f88614606e3a8362f6fb8 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:22:44 -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 e22cf388..d02d0d70 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -126,7 +126,7 @@ struct SensorData read_sensor_data(struct SensorConfig sensor) { struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { struct SensorConfig data; - printf("Bus number: %d \n", atoi(bus[(strlen(bus)/sizeof(bus[0])) - 1])); + 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"); pclose(i2cdetect);