From f74042e7e28fff73d08d7cc0c1c596827dd66568 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 11 Mar 2026 15:21:12 -0400 Subject: [PATCH] Update main.c remove test for i2c-bus 11 --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index a7b04e4a..a7b50540 100644 --- a/main.c +++ b/main.c @@ -330,13 +330,15 @@ int main(int argc, char * argv[]) { map[MINUS_X] = MINUS_Y; map[PLUS_Z] = MINUS_X; map[MINUS_Y] = PLUS_Z; - +/* if (access("/dev/i2c-11", W_OK | R_OK) >= 0) { // Test if I2C Bus 11 is present printf("/dev/i2c-11 is present\n\n"); snprintf(busStr, 10, "%d %d", test_i2c_bus(1), test_i2c_bus(11)); } else { snprintf(busStr, 10, "%d %d", i2c_bus1, i2c_bus3); } +*/ + snprintf(busStr, 10, "%d %d", i2c_bus1, i2c_bus3); FILE * os_test = popen("cat /etc/os-release", "r"); fgets(cmdbuffer, 1000, os_test);