Update main.c fix groundCommandCount

release
Alan Johnston 1 year ago committed by GitHub
parent ae6a4e051e
commit 62c34af83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1266,7 +1266,7 @@ void get_tlm_fox() {
short int rs_frame[rsFrames][223]; short int rs_frame[rsFrames][223];
unsigned char parities[rsFrames][parityLen], inputByte; unsigned char parities[rsFrames][parityLen], inputByte;
int id, frm_type = 0x01, NormalModeFailure = 0, groundCommandCount = 0; int id, frm_type = 0x01, NormalModeFailure = 0;
int PayloadFailure1 = 0, PayloadFailure2 = 0; int PayloadFailure1 = 0, PayloadFailure2 = 0;
int PSUVoltage = 0, PSUCurrent = 0, Resets = 0, Rssi = 2048; int PSUVoltage = 0, PSUCurrent = 0, Resets = 0, Rssi = 2048;
int batt_a_v = 0, batt_b_v = 0, batt_c_v = 0, battCurr = 0; int batt_a_v = 0, batt_b_v = 0, batt_c_v = 0, battCurr = 0;
@ -1602,9 +1602,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); // 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);

Loading…
Cancel
Save

Powered by TurnKey Linux.