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