From de0ea0e42b5026ffb97fd73a6b54496f41f6703b Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 30 Mar 2021 12:25:00 -0400 Subject: [PATCH] TX with VHF BPF --- afsk/main.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index ef6d95d6..e2a5b385 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -303,19 +303,20 @@ mode = AFSK; onLedOff = LOW; transmit = TRUE; } else { - pinMode(23, INPUT); - pullUpDnControl(23, PUD_UP); - - if (digitalRead(23) != HIGH) { - printf("vB5 Present with VHF BPF\n"); - txLed = 2; - txLedOn = HIGH; - txLedOff = LOW; - vB5 = TRUE; - onLed = 27; - onLedOn = HIGH; - onLedOff = LOW; - transmit = TRUE; + pinMode(23, INPUT); + pullUpDnControl(23, PUD_UP); + + if (digitalRead(23) != HIGH) { + printf("vB5 Present with VHF BPF\n"); + txLed = 2; + txLedOn = HIGH; + txLedOff = LOW; + vB5 = TRUE; + onLed = 27; + onLedOn = HIGH; + onLedOff = LOW; + transmit = TRUE; + } } } }