added check for VHF BPF, with log that not supported yet so no transmit

pull/132/head
alanbjohnston 5 years ago committed by GitHub
parent 492b341188
commit 352415cd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -189,7 +189,7 @@ int main(int argc, char * argv[]) {
pullUpDnControl(3, PUD_UP);
if (digitalRead(3) != HIGH) {
printf("vB4 Present\n");
printf("vB4 Present with UHF BPF\n");
txLed = 2;
txLedOn = HIGH;
txLedOff = LOW;
@ -203,7 +203,7 @@ int main(int argc, char * argv[]) {
pullUpDnControl(26, PUD_UP);
if (digitalRead(26) != HIGH) {
printf("vB5 Present\n");
printf("v1 Present with UHF BPF\n");
txLed = 2;
txLedOn = HIGH;
txLedOff = LOW;
@ -213,6 +213,23 @@ int main(int argc, char * argv[]) {
onLedOff = LOW;
transmit = TRUE;
}
else {
pinMode(23, INPUT);
pullUpDnControl(23, PUD_UP);
if (digitalRead(23) != HIGH) {
printf("v1 Present with VHF BPF\n");
txLed = 2;
txLedOn = HIGH;
txLedOff = LOW;
vB5 = TRUE;
onLed = 27;
onLedOn = HIGH;
onLedOff = LOW;
printf("VHF BPF not yet supported so no transmit\n");
transmit = FALSE;
}
}
}
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.