From be29e8a326ad13b01e21033f631b05beee4ddcb3 Mon Sep 17 00:00:00 2001 From: ucart <ucart_groundstation@iastate.edu> Date: Wed, 12 Apr 2017 23:58:54 -0500 Subject: [PATCH] truncation of new log files --- groundStation/src/backend/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groundStation/src/backend/backend.c b/groundStation/src/backend/backend.c index d6b49449d..3819ebc53 100644 --- a/groundStation/src/backend/backend.c +++ b/groundStation/src/backend/backend.c @@ -854,7 +854,7 @@ static void quad_recv() { char log_file[256]; create_log_name(log_file, 256); printf("New log file created: '%s'\n", log_file); - quadlog_file = fopen(log_file, "a"); + quadlog_file = fopen(log_file, "w"); quadlog_file_open = 1; } if (!receiving_logs) { -- GitLab