made telem_file global

bp
alanbjohnston 5 years ago committed by GitHub
parent 6c1ed0230a
commit eda257a6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,6 +103,7 @@ int firstTime = ON;
long start; long start;
int testCount = 0; int testCount = 0;
long time_start; long time_start;
FILE * telem_file;
short int buffer[2336400]; // max size for 10 frames count of BPSK short int buffer[2336400]; // max size for 10 frames count of BPSK
@ -194,7 +195,7 @@ mode = AFSK;
} }
// Open telemetry file with STEM Payload Data // Open telemetry file with STEM Payload Data
FILE * telem_file = fopen("/home/pi/CubeSatSim/telem.txt", "r"); telem_file = fopen("/home/pi/CubeSatSim/telem.txt", "r");
if (telem_file == NULL) { if (telem_file == NULL) {
printf("Creating telem file"); printf("Creating telem file");
telem_file = fopen("/home/pi/CubeSatSim/telem.txt", "w"); telem_file = fopen("/home/pi/CubeSatSim/telem.txt", "w");

Loading…
Cancel
Save

Powered by TurnKey Linux.