From 46fb18d6012077557c6a242e6d98a3321a370307 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 19 Jan 2025 16:59:54 -0500 Subject: [PATCH] Update main.c change prints --- main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 79eb492a..661f777d 100644 --- a/main.c +++ b/main.c @@ -2293,15 +2293,17 @@ void get_tlm_fc() { int byte_count = 256; smaller = (int) (S_RATE / (2 * freq_Hz)); - printf("\n\n"); - for (int i=0; i<256; i++) - printf("%d ", source_bytes[i]); - printf("\n\n"); /* write telemetry into data buffer */ memset(source_bytes, 0x00, sizeof(source_bytes)); source_bytes[10] = (uint8_t) rnd_float(0,255); + printf("\nsource_bytes\n"); + for (int i=0; i<256; i++) + printf("%d ", source_bytes[i]); + printf("\n\n"); + + /* convert data buffer into stream buffer */ // const unsigned char *CCodecAO40::encode(unsigned char *source_bytes, int byte_count) @@ -2309,7 +2311,7 @@ void get_tlm_fc() { // CCodecAO40 ao40; unsigned char* encoded_bytes = encode((unsigned char*)source_bytes, byte_count); - printf("\n\n"); + printf("\nencoded_bytes\n"); for (int i=0; i<650; i++) printf("%d ", encoded_bytes[i]); printf("\n\n");