Rewrite and Simplify DSTAR Handling;

This commit is contained in:
lwvmobile
2023-07-29 21:46:11 -04:00
parent 0d4ab17d0a
commit 23b1036c6b
7 changed files with 147 additions and 298 deletions

View File

@@ -470,6 +470,12 @@ if(opts->frame_m17 == 1) //&& opts->audio_in_type == 5
state->ysf_fi = 9;
state->ysf_cm = 9;
//DSTAR Call Strings
sprintf (state->dstar_rpt1, "%s", " "); //8 spaces
sprintf (state->dstar_rpt2, "%s", " "); //8 spaces
sprintf (state->dstar_dst, "%s", " "); //8 spaces
sprintf (state->dstar_src, "%s", " "); //8 spaces
//M17 Storage
memset (state->m17_lsf, 1, sizeof(state->m17_lsf));
state->m17_str_dt = 9;
@@ -941,8 +947,6 @@ initState (dsd_state * state)
state->payload_miP = 0;
memset(state->dstarradioheader, 0, 41);
//initialize dmr data header source
state->dmr_lrrp_source[0] = 0;
state->dmr_lrrp_source[1] = 0;
@@ -1116,6 +1120,12 @@ initState (dsd_state * state)
state->ysf_fi = 9;
state->ysf_cm = 9;
//DSTAR Call Strings
sprintf (state->dstar_rpt1, "%s", " "); //8 spaces
sprintf (state->dstar_rpt2, "%s", " "); //8 spaces
sprintf (state->dstar_dst, "%s", " "); //8 spaces
sprintf (state->dstar_src, "%s", " "); //8 spaces
//M17 Storage
memset (state->m17_lsf, 1, sizeof(state->m17_lsf));
state->m17_str_dt = 9;