Update main.c command_count fix

beta-v1.3.1.1-config
Alan Johnston 2 years ago committed by GitHub
parent 32563fdce7
commit af82f4e9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1575,9 +1575,10 @@ void get_tlm_fox() {
char count_string[10]; char count_string[10];
if ( (fgets(count_string, 10, command_count_file)) != NULL) if ( (fgets(count_string, 10, command_count_file)) != NULL)
groundCommandCount = atoi(count_string); groundCommandCount = atoi(count_string);
fclose(command_count_file);
} else } else
printf("Error opening command_count.txt!\n"); printf("Error opening command_count.txt!\n");
fclose(command_count_file);
printf("Command count: %d\n", groundCommandCount); printf("Command count: %d\n", groundCommandCount);
int status = STEMBoardFailure + SafeMode * 2 + sim_mode * 4 + PayloadFailure1 * 8 + int status = STEMBoardFailure + SafeMode * 2 + sim_mode * 4 + PayloadFailure1 * 8 +

Loading…
Cancel
Save

Powered by TurnKey Linux.