From accfbe77475940ba4c41a3e947a41248a442a14e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 22 Jul 2019 08:40:48 -0400 Subject: [PATCH] fixed #DEBUG LOGGING of x_fd, y_fd, and z_fd --- afsk/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 9210c968..2b37ccb5 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -167,11 +167,11 @@ int main(int argc, char *argv[]) { } else { x_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x40); - fprintf(stderr,"Opening of -X fd %d\n", x_fd); y_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x41); - printf("Opening of -Y fd %d\n", y_fd); - z_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x44); - printf("Opening of -Z fd %d\n", z_fd); + z_fd = wiringPiI2CSetupInterface("/dev/i2c-0", 0x44); + #ifdef DEBUG_LOGGING + fprintf(stderr, "Opening of -X %d, -Y %d, -Z %d\n", x_fd, y_fd, z_fd); + #endif int test; if (((test = open("/dev/i2c-1", O_RDWR))) > 0) // Test if I2C Bus 1 is present