From e82b0fb7b5016c25221c90f1783ecb5e973117a2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Feb 2026 10:39:20 -0500 Subject: [PATCH] Fix byte count for writing to tlm.bin to 70 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3ff0e941..f1d491ac 100644 --- a/main.c +++ b/main.c @@ -1568,7 +1568,7 @@ void get_tlm_fox() { { FILE *telem_binary = fopen("/home/pi/CubeSatSim/tlm.bin", "wb"); if (telem_binary != NULL) { - int bytes_written = fwrite(b, sizeof(char), 78, telem_binary); + int bytes_written = fwrite(b, sizeof(char), 70, telem_binary); printf("Writing %d bytes to tlm.bin\n", bytes_written); fclose(telem_binary); }