From 3531a337188ce958587f3e5f03da3056265b0282 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 12 Sep 2020 17:16:02 -0400 Subject: [PATCH] added bus test for vB3 --- afsk/telem.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/afsk/telem.c b/afsk/telem.c index 81b3f344..231f68a3 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -48,6 +48,10 @@ int main(int argc, char *argv[]) { map[BAT] = BUS; map[PLUS_Z] = BAT; map[MINUS_Z] = PLUS_Z; + + snprintf(busStr, 10, "%d %d", test_i2c_bus(1), test_i2c_bus(0)); + printf("New Bus String: %s \n", busStr); +/* if (access("/dev/i2c-0", W_OK | R_OK) >= 0) { // Test if I2C Bus 0 is present printf("/dev/i2c-0 is present\n\n"); char result[128]; @@ -74,7 +78,8 @@ int main(int argc, char *argv[]) { printf("ERROR: %s bus has a problem \n Check software to see if enabled \n", "0"); strcpy(busStr,"1 -1"); } - } +*/ + } else { pinMode (3, INPUT);