From f3b72d9500c7e3fb04a6b00b7b877a90f7d31e4b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 29 Jun 2021 17:16:58 -0400 Subject: [PATCH] fixed bug with i2c_bus variable --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 0f109abf..c45bf5e9 100644 --- a/main.c +++ b/main.c @@ -28,10 +28,10 @@ int main(int argc, char * argv[]) { printf("Test bus 1\n"); fflush(stdout); - i2c_bus1 = (test_i2c_bus(1) != -1) ? ON : OFF; + i2c_bus1 = (test_i2c_bus(1) != -1) ? 1 : OFF; printf("Test bus 3\n"); fflush(stdout); - i2c_bus3 = (test_i2c_bus(3) != -1) ? ON : OFF; + i2c_bus3 = (test_i2c_bus(3) != -1) ? 3 : OFF; printf("Finished testing\n"); fflush(stdout);