read .mode file

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

@ -191,6 +191,16 @@ int main(int argc, char * argv[]) {
printf("No CW id\n");
}
}
} else {
FILE * mode_file = fopen("/home/pi/CubeSatSim/.mode", "r");
if (mode_file != NULL) {
char mode_string[5];
mode_string = fgetc(mode_file);
fclose(mode_file);
printf("Mode file /home/pi/CubeSatSim/.mode contains %s\n", mode_string);
}
}
// Open configuration file with callsign and reset count

Loading…
Cancel
Save

Powered by TurnKey Linux.