From 06ff8256ce1d895ddba6f33420face86ae60b8d2 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 8 Aug 2020 18:21:36 -0400 Subject: [PATCH] commented out debug printfs --- afsk/telem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/telem.c b/afsk/telem.c index 3b852c93..2d7d5af2 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -127,15 +127,15 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { struct SensorConfig data; if (access(bus, W_OK | R_OK) < 0) { // Test if I2C Bus is missing - printf("ERROR: %s bus not present \n Is it enabled in /boot/config.txt? \n", bus); + printf("ERROR: %s bus not present \n Check raspi-config Interfacing Options/I2C/Enable and /boot/config.txt \n", bus); data.fd = OFF; return (data); } char result[128]; int pos = strlen(bus) / sizeof(bus[0]) - 1; - printf("Bus size %d \n", pos); - printf("Bus value %d \n", atoi(&bus[pos])); +// printf("Bus size %d \n", pos); +// printf("Bus value %d \n", atoi(&bus[pos])); char command[50] = "timeout 5 i2cdetect -y "; strcat (command, &bus[pos]); FILE *i2cdetect = popen(command, "r"); @@ -144,7 +144,7 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) { // printf("result: %s", result); } int error = pclose(i2cdetect)/256; - printf("%s error: %d \n", &command, error); +// printf("%s error: %d \n", &command, error); if (error != 0) { printf("ERROR: %s bus has a problem \n Check I2C wiring and pullup resistors \n", bus);