From 9afe0f805738a4e2100eeb13f469c2430084fa47 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 9 Dec 2020 11:20:49 -0500 Subject: [PATCH] changed i2c bus on to off, testing --- afsk/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 4828f894..a7487bae 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -405,6 +405,9 @@ else i2c_bus0 = (test_i2c_bus(0) != -1) ? ON: OFF; i2c_bus1 = (test_i2c_bus(1) != -1) ? ON: OFF; i2c_bus3 = (test_i2c_bus(3) != -1) ? ON: OFF; + +i2c_bus1 = ON; // testing +i2c_bus3 = ON; #ifdef DEBUG_LOGGING printf("INFO: I2C bus status 0: %d 1: %d 3: %d \n",i2c_bus0, i2c_bus1, i2c_bus3); @@ -1316,7 +1319,7 @@ if (payload == ON) encodeA(b, 48 + head_offset, sensor2); encodeB(b, 49 + head_offset, sensor3); - encodeA(b, 51 + head_offset, STEMBoardFailure + NormalModeFailure * 2 + (i2c_bus0 == ON) * 16 + (i2c_bus1 == ON) * 32 + (i2c_bus3 == ON) * 64 + groundCommandCount * 256); + encodeA(b, 51 + head_offset, STEMBoardFailure + NormalModeFailure * 2 + (i2c_bus0 == OFF) * 16 + (i2c_bus1 == OFF) * 32 + (i2c_bus3 == OFF) * 64 + groundCommandCount * 256); encodeB(b, 52 + head_offset, rxAntennaDeployed + txAntennaDeployed* 2); short int data10[headerLen + rsFrames * (rsFrameLen + parityLen)];