Tweak Event History String Regarding Mixed Address and UTF Text Data; #288

This commit is contained in:
lwvmobile
2025-05-08 15:18:00 -04:00
parent 2dc9db17ab
commit e37955448e

View File

@@ -735,8 +735,8 @@ void dmr_udt_decoder (dsd_opts * opts, dsd_state * state, uint8_t * block_bytes,
end -= udt_padnib/4;
fprintf (stderr, "Address: %d; ", (uint32_t)ConvertBitIntoBytes(&cs_bits[96+8], 24));
fprintf (stderr, "UTF16 Text: " );
strcat (udt_string, "UTF16 Text; ");
sprintf (state->event_history_s[slot].Event_History_Items[0].text_message, "%s", " ");
strcat (udt_string, "Mixed Add/Text; ");
sprintf (state->event_history_s[slot].Event_History_Items[0].text_message, "%s", " Address: %d; ", (uint32_t)ConvertBitIntoBytes(&cs_bits[96+8], 24));
for (i = 0; i < end; i++) //368/16 = 21 character max
{
utf16c = (uint16_t)ConvertBitIntoBytes(&cs_bits[(i*16)+96+32], 16);