removed wiringpi calls

bananapi
alanbjohnston 4 years ago committed by GitHub
parent 4e07f1ab7e
commit 8b4345aaf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -150,7 +150,7 @@ int main(int argc, char * argv[]) {
if (strcmp(sim_yes, "yes") == 0) if (strcmp(sim_yes, "yes") == 0)
sim_mode = TRUE; sim_mode = TRUE;
wiringPiSetup(); // wiringPiSetup();
if (mode == AFSK) if (mode == AFSK)
{ {
@ -192,10 +192,11 @@ int main(int argc, char * argv[]) {
txLedOn = LOW; txLedOn = LOW;
txLedOff = HIGH; txLedOff = HIGH;
if (!ax5043) { if (!ax5043) {
pinMode(2, INPUT); // pinMode(2, INPUT);
pullUpDnControl(2, PUD_UP); // pullUpDnControl(2, PUD_UP);
if (digitalRead(2) != HIGH) { // if (digitalRead(2) != HIGH) {
if (0) {
printf("vB3 with TFB Present\n"); printf("vB3 with TFB Present\n");
vB3 = TRUE; vB3 = TRUE;
txLed = 3; txLed = 3;
@ -206,11 +207,12 @@ int main(int argc, char * argv[]) {
onLedOff = HIGH; onLedOff = HIGH;
transmit = TRUE; transmit = TRUE;
} else { } else {
pinMode(3, INPUT); // pinMode(3, INPUT);
pullUpDnControl(3, PUD_UP); // pullUpDnControl(3, PUD_UP);
if (digitalRead(3) != HIGH) { // if (digitalRead(3) != HIGH) {
printf("vB4 Present with UHF BPF\n"); if (0) {
printf("vB4 Present with UHF BPF\n");
txLed = 2; txLed = 2;
txLedOn = HIGH; txLedOn = HIGH;
txLedOff = LOW; txLedOff = LOW;
@ -220,10 +222,11 @@ int main(int argc, char * argv[]) {
onLedOff = LOW; onLedOff = LOW;
transmit = TRUE; transmit = TRUE;
} else { } else {
pinMode(26, INPUT); // pinMode(26, INPUT);
pullUpDnControl(26, PUD_UP); // pullUpDnControl(26, PUD_UP);
if (digitalRead(26) != HIGH) { // if (digitalRead(26) != HIGH) {
{
printf("v1 Present with UHF BPF\n"); printf("v1 Present with UHF BPF\n");
txLed = 2; txLed = 2;
txLedOn = HIGH; txLedOn = HIGH;
@ -235,10 +238,11 @@ int main(int argc, char * argv[]) {
transmit = TRUE; transmit = TRUE;
} }
else { else {
pinMode(23, INPUT); // pinMode(23, INPUT);
pullUpDnControl(23, PUD_UP); // pullUpDnControl(23, PUD_UP);
if (digitalRead(23) != HIGH) { // if (digitalRead(23) != HIGH) {
if (0) {
printf("v1 Present with VHF BPF\n"); printf("v1 Present with VHF BPF\n");
txLed = 2; txLed = 2;
txLedOn = HIGH; txLedOn = HIGH;

Loading…
Cancel
Save

Powered by TurnKey Linux.