From 2ea7397976d79a89c0cd7f4678d64780458167df Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 13 Aug 2023 09:30:35 -0400 Subject: [PATCH] fixed atoi and printf --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index a7582df3..23681d69 100644 --- a/main.c +++ b/main.c @@ -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);