diff --git a/src/dsd_frame_sync.c b/src/dsd_frame_sync.c index 75cd3bc..dea4274 100644 --- a/src/dsd_frame_sync.c +++ b/src/dsd_frame_sync.c @@ -154,8 +154,8 @@ getFrameSync (dsd_opts * opts, dsd_state * state) if (state->dmr_rest_channel == -1 && opts->p25_is_tuned == 0 && opts->p25_trunk == 1 && ( (time(NULL) - state->last_cc_sync_time) > (opts->trunk_hangtime + 0) ) ) //was 3, go to hangtime value { - //test to switch back to 10/4 P1 QPSK for P25 FDMA CC - if (opts->mod_qpsk == 1 && state->p25_cc_is_tdma == 0) + //if P25p2 VCH and going back to P25p1 CC, flip symbolrate + if (state->p25_cc_is_tdma == 0) { state->samplesPerSymbol = 10; state->symbolCenter = 4; diff --git a/src/dsd_main.c b/src/dsd_main.c index 94bc017..5afb1ea 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -207,7 +207,7 @@ if(opts->frame_m17 == 1) //&& opts->audio_in_type == 5 state->last_cc_sync_time = time(NULL); //test to switch back to 10/4 P1 QPSK for P25 FDMA CC - //reworked to always change back to 10/4 if p25_cc_is_tdma is set to 0 or 1 (inits on 2) + //if P25p2 VCH and going back to P25p1 CC, flip symbolrate if (state->p25_cc_is_tdma == 0) //is set on signal from P25 TSBK or MAC_SIGNAL { state->samplesPerSymbol = 10; diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index d80a339..dda3d66 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -3827,6 +3827,13 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) state->last_cc_sync_time = time(NULL); + //if P25p2 VCH and going back to P25p1 CC, flip symbolrate + if (state->p25_cc_is_tdma == 0) + { + state->samplesPerSymbol = 10; + state->symbolCenter = 4; + } + } if (state->lasttgR != 0 && opts->frame_provoice != 1 && c == 64) //SHIFT+'2' key (@ at sign), lockout slot 2 tdma tgR from tuning/playback during session @@ -3882,6 +3889,13 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) state->last_cc_sync_time = time(NULL); + //if P25p2 VCH and going back to P25p1 CC, flip symbolrate + if (state->p25_cc_is_tdma == 0) + { + state->samplesPerSymbol = 10; + state->symbolCenter = 4; + } + } // if (c == 48) //'0' key, toggle upsampled audio smoothing