only test for ax5043 if AFSK mode

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

@ -117,6 +117,8 @@ int main(int argc, char * argv[]) {
wiringPiSetup();
if (mode == AFSK)
{
// Check for SPI and AX-5043 Digital Transceiver Board
FILE * file = popen("sudo raspi-config nonint get_spi", "r");
// printf("getc: %c \n", fgetc(file));
@ -138,7 +140,7 @@ int main(int argc, char * argv[]) {
printf("AX5043 successfully initialized!\n");
ax5043 = TRUE;
cw_id = OFF;
mode = AFSK;
// mode = AFSK;
// cycle = OFF;
printf("Mode AFSK with AX5043\n");
transmit = TRUE;
@ -148,8 +150,9 @@ int main(int argc, char * argv[]) {
pclose(file2);
}
}
pclose(file);
}
txLed = 0; // defaults for vB3 board without TFB
txLedOn = LOW;
txLedOff = HIGH;

Loading…
Cancel
Save

Powered by TurnKey Linux.