if no arguments, set mode based on .mode character

pull/93/head
alanbjohnston 5 years ago committed by GitHub
parent 8707315884
commit 4054359f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,8 @@ FILE *sopen(const char *program);
#define AFSK 1
#define FSK 2
#define BPSK 3
#define CW 4
#define SSTV 4
#define CW 5
int rpitxStatus = -1;
@ -200,6 +201,22 @@ int main(int argc, char * argv[]) {
fclose(mode_file);
printf("Mode file /home/pi/CubeSatSim/.mode contains %c\n", mode_string);
if ( mode_string == 'b') {
mode = BPSK;
printf("Mode is BPSK\n");
} else if ( mode_string == 'a') {
mode = AFSK;
printf("Mode is AFSK\n");
} else if ( mode_string == 's') {
mode = SSTV;
printf("Mode is SSTV\n");
} else if ( mode_string == 'c') {
mode = CW;
printf("Mode is CW\n");
} else {
printf("Mode is FSK\n");
}
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.