mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 09:17:20 -05:00
Tweak Event History String Regarding Mixed Address and UTF Text Data; #288
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user