don't check for payload if vB3 with TFB present

pull/60/head
alanbjohnston 5 years ago committed by GitHub
parent ddcd6c7d3c
commit af9ec8d2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -117,7 +117,7 @@ int bitRate, mode, bufLen, rsFrames, payloads, rsFrameLen, dataLen, headerLen, s
float sleepTime; float sleepTime;
int sampleTime = 0, frames_sent = 0; int sampleTime = 0, frames_sent = 0;
int cw_id = ON; int cw_id = ON;
int vB4 = FALSE, vB5 = FALSE, ax5043 = FALSE, transmit = FALSE, onLed, onLedOn, onLedOff, txLed, txLedOn, txLedOff, payload = OFF; int vB4 = FALSE, vB5 = FALSE, vB3 = FALSE, ax5043 = FALSE, transmit = FALSE, onLed, onLedOn, onLedOff, txLed, txLedOn, txLedOff, payload = OFF;
float batteryThreshold = 3.0, batteryVoltage; float batteryThreshold = 3.0, batteryVoltage;
int test_i2c_bus(int bus); int test_i2c_bus(int bus);
@ -239,6 +239,7 @@ int main(int argc, char *argv[]) {
if (digitalRead(2) != HIGH) if (digitalRead(2) != HIGH)
{ {
printf("vB3 with TFB Present\n"); printf("vB3 with TFB Present\n");
vB3 = TRUE;
txLed = 3; txLed = 3;
txLedOn = LOW; txLedOn = LOW;
txLedOff = HIGH; txLedOff = HIGH;
@ -338,7 +339,7 @@ else
// try connecting to Arduino payload using UART // try connecting to Arduino payload using UART
if (!ax5043) // don't test if AX5043 is present if (!ax5043 && !vB3) // don't test if AX5043 is present
{ {
payload = OFF; payload = OFF;

Loading…
Cancel
Save

Powered by TurnKey Linux.