From a6beb17b670109d09b455a60813fc9719ab955e0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 28 Feb 2026 13:53:15 -0500 Subject: [PATCH] Update main.c change to bytes --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index edd0ae0e..5707acae 100644 --- a/main.c +++ b/main.c @@ -1579,10 +1579,12 @@ void get_tlm_fox() { fwrite(&now, sizeof(now), 1, telem_binary); int count; + char byte; printf("b is: \n"); for (count = 0; count < 70; count++) { - fwrite((char)b[count], 1, 1, telem_binary); - printf("%02X ", b[count]); + byte = b[count]; + fwrite(&byte, 1, 1, telem_binary); + printf("%02X ", byte); bytes_written++; } printf("\n");