From ed5ba3fe41a2d9e1afb498ce3d0f5f12506c266f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 16:14:58 -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 0595abe0..b884221e 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; - print ("Bus number: %d \n", atoi(bus[strlen(bus) - 1]); + print ("Bus number: %d \n", atoi(bus[strlen(bus) - 1])); FILE *i2cdetect = popen("timeout --preserve-status 5 i2cdetect -y 0", "r"); pclose(i2dectect);