From c726476fd9f3f785343107e8386f0c4c37d4deab Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 19 Jan 2025 08:59:18 -0500 Subject: [PATCH] Update main.c fix ao40 objects --- main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6721524f..8777a974 100644 --- a/main.c +++ b/main.c @@ -2254,11 +2254,23 @@ void get_tlm_fc() { /* convert data buffer into stream buffer */ // const unsigned char *CCodecAO40::encode(unsigned char *source_bytes, int byte_count) - encoded_bytes = CCodecAO40::encode(*source_bytes, byte_count); + + CCodecAO40 ao40; + encoded_bytes = ao40.encode((unsigned char*)source_bytes, byte_count); + /* convert to waveform buffer */ /* open socket */ /* write waveform buffer over socket */ + /* from funcubeLib/common/testFec.cpp + + U8 sourceBytes[BLOCK_SIZE]; + memset(sourceBytes, 42, BLOCK_SIZE); + + CCodecAO40 ao40; + const U8* encoded = ao40.encode((unsigned char*)sourceBytes, BLOCK_SIZE); + */ + }