From 1e484a3beb6d227d1ced3f7fa17cbb736ce5438f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Feb 2026 12:47:05 -0500 Subject: [PATCH] Add timestamp at start of tlm --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index f1d491ac..2e83cf63 100644 --- a/main.c +++ b/main.c @@ -1568,8 +1568,10 @@ void get_tlm_fox() { { FILE *telem_binary = fopen("/home/pi/CubeSatSim/tlm.bin", "wb"); if (telem_binary != NULL) { + time_t now = time(0); + fwrite(b, sizeof(how), 1, &now); int bytes_written = fwrite(b, sizeof(char), 70, telem_binary); - printf("Writing %d bytes to tlm.bin\n", bytes_written); + printf("Writing %d bytes to tlm.bin\n", bytes_written + 4); fclose(telem_binary); } else