From 0435bd54ccf1dd658c1a7312e851d79d469f50c9 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 11 Sep 2020 17:59:44 -0400 Subject: [PATCH] Update telem.c --- afsk/telem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/telem.c b/afsk/telem.c index 494d89b0..5c73acff 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -246,7 +246,7 @@ int main(int argc, char *argv[]) { int test_i2c_bus(int bus) { - int result = 1; + int output = 1; char *busString = "/dev/i2c-3"; if (access(busString, W_OK | R_OK) >= 0) { // Test if I2C Bus 0 is present @@ -266,12 +266,12 @@ int test_i2c_bus(int bus) if (error != 0) { printf("ERROR: %d bus has a problem \n Check I2C wiring and pullup resistors \n", bus); - result = -1; + output = -1; } } else { printf("ERROR: %d bus has a problem \n Check software to see if enabled \n", bus); - result = -1; + output = -1; } - return(result); + return(output); }