changed OFF to false for i2c bus

pull/216/head
alanbjohnston 3 years ago committed by GitHub
parent c1c6c1fca7
commit b8ff403bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -928,7 +928,7 @@ void get_tlm_fox() {
encodeB(b, 49 + head_offset, (int)(sensor[XS2] * 10 + 0.5) + 2048);
// Serial.println("D");
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;
(i2c_bus0 == false) * 16 + (i2c_bus1 == false) * 32 + (i2c_bus3 == false) * 64 + (camera == OFF) * 128 + groundCommandCount * 256;
encodeA(b, 51 + head_offset, status);
encodeB(b, 52 + head_offset, rxAntennaDeployed + txAntennaDeployed * 2);
// Serial.println("E");
@ -2701,7 +2701,7 @@ void start_ina219() {
Serial.print("I2C bus 1: ");
Serial.print(i2c_bus1);
Serial.print(" I2C bus 3: ");
Serial.print(i2c_bus3);
Serial.println(i2c_bus3);
/*
if (i2c_bus1) {

Loading…
Cancel
Save

Powered by TurnKey Linux.