From af9ec8d2c2c9785da02e36d5df5bbc21fae5d000 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 8 Nov 2020 18:34:29 -0500 Subject: [PATCH] don't check for payload if vB3 with TFB present --- afsk/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 40a1913d..518a357f 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -117,7 +117,7 @@ int bitRate, mode, bufLen, rsFrames, payloads, rsFrameLen, dataLen, headerLen, s float sleepTime; int sampleTime = 0, frames_sent = 0; 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; int test_i2c_bus(int bus); @@ -239,6 +239,7 @@ int main(int argc, char *argv[]) { if (digitalRead(2) != HIGH) { printf("vB3 with TFB Present\n"); + vB3 = TRUE; txLed = 3; txLedOn = LOW; txLedOff = HIGH; @@ -338,7 +339,7 @@ else // 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;