From c6eb2e459775585eff30752a76efab1c3c179c94 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 7 Aug 2025 16:29:46 -0400 Subject: [PATCH] Update main.c fix i2c 1 and 3 bus on and off --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index a48005a4..53f36b9b 100644 --- a/main.c +++ b/main.c @@ -1655,18 +1655,18 @@ void get_tlm_fox() { simulated = sim_mode; if (failureMode != OFF) { simulated = TRUE; - printf("Showing Simulted in FoxTelem\n"); +// printf("Showing Simulted in FoxTelem\n"); } int i2c_1, i2c_3; i2c_1 = i2c_bus1; i2c_3 = i2c_bus3; printf("Bus1: %d Bus2: %d \n", i2c_1, i2c_3); if (failureMode == FAIL_I2C1) { - i2c_1 = FALSE; - printf("I2C Bus 1 Simulated Failure\n"); + i2c_1 = OFF; +// printf("I2C Bus 1 Simulated Failure\n"); } else if (failureMode == FAIL_I2C3) { - i2c_3 = FALSE; - printf("I2C Bus 3 Simulated Failure\n"); + i2c_3 = OFF; +// printf("I2C Bus 3 Simulated Failure\n"); } // int status = STEMBoardFailure + SafeMode * 2 + sim_mode * 4 + PayloadFailure1 * 8 + // (i2c_bus0 == OFF) * 16 + (i2c_bus1 == OFF) * 32 + (i2c_bus3 == OFF) * 64 + (camera == OFF) * 128 + groundCommandCount * 256;