fixed atoi and printf

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent 1d2fc13806
commit 2ea7397976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1516,9 +1516,9 @@ void get_tlm_fox() {
if (command_count_file != NULL) {
char count_string[10];
if ( (fgets(count_string, 10, command_count_file)) != NULL)
groundCommandCount = strotascii(count_string);
groundCommandCount = atoi(count_string);
} else
print("Error opening command_count.txt!\n");
fprint("Error opening command_count.txt!\n");
fclose(command_count_file);
printf("Command count: %d\n", groundCommandCount);

Loading…
Cancel
Save

Powered by TurnKey Linux.