From d730ca2c2578aaeba7a6d17cfe907f3b70f2aad7 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Wed, 6 Mar 2024 13:21:27 -0500 Subject: [PATCH] M17 - Flush Stored Decoder Meta when not Encoding; --- src/m17.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/m17.c b/src/m17.c index 9e1e1b9..fd2239f 100644 --- a/src/m17.c +++ b/src/m17.c @@ -1787,6 +1787,9 @@ void encodeM17STR(dsd_opts * opts, dsd_state * state) //flag on when restarting the encoder new_lsf = 1; + //flush meta last, primarily the last two octets with the lich_cnt in them + memset(state->m17_meta, 0, sizeof(state->m17_meta)); + } //refresh ncurses printer, if enabled