From b41f437ba60a4997ecd53da5aa660413fb9f1ee0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:41:21 -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 dc059804..70ff6730 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -128,7 +128,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { int pos = strlen(bus) / sizeof(bus[0]) - 1; printf("Bus size %d \n", pos); - printf("Bus value %d \n", atoi(*bus[pos])); + printf("Bus value %d \n", atoi(&bus[pos])); FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r"); // printf("1\n");