Minor Framesync Print with DMR

Minor Framesync Print with DMR
--Minor Framesync Print Fix for DMR
This commit is contained in:
lwvmobile
2022-05-06 11:48:37 -04:00
committed by GitHub
parent 064cc21b2b
commit f8b9d47c6d
2 changed files with 12 additions and 12 deletions

View File

@@ -456,7 +456,8 @@ void dmrBSBootstrap (dsd_opts * opts, dsd_state * state)
} }
fprintf (stderr,"\n%s ", getTime()); //fprintf (stderr,"\n%s ", getTime());
fprintf (stderr,"%s ", getTime());
fprintf (stderr,"Sync: +DMR | Frame Sync | DMRSTEREO | VC1 FS \n"); fprintf (stderr,"Sync: +DMR | Frame Sync | DMRSTEREO | VC1 FS \n");
processMbeFrame (opts, state, NULL, ambe_fr3, NULL); processMbeFrame (opts, state, NULL, ambe_fr3, NULL);
dmrBS (opts, state); //bootstrap into full TDMA frame for BS mode dmrBS (opts, state); //bootstrap into full TDMA frame for BS mode

View File

@@ -839,7 +839,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1)
{ {
//printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation);
} }
if (state->lastsynctype != 11) if (state->lastsynctype != 11)
{ {
@@ -867,7 +867,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1)
{ {
//printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation);
} }
state->lastsynctype = 10; state->lastsynctype = 10;
if ( opts->monitor_input_audio == 1) if ( opts->monitor_input_audio == 1)
@@ -880,9 +880,9 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// inverted voice frame // inverted voice frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
//printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation);
} }
if (state->lastsynctype != 11) if (state->lastsynctype != 11)
{ {
@@ -891,7 +891,6 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
state->lastsynctype = 11; state->lastsynctype = 11;
if ( opts->monitor_input_audio == 1) if ( opts->monitor_input_audio == 1)
{ {
pa_simple_flush(opts->pulse_raw_dev_out, NULL); pa_simple_flush(opts->pulse_raw_dev_out, NULL);
} }
return (11); return (11);
@@ -909,7 +908,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// voice frame // voice frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation);
} }
@@ -929,7 +928,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// inverted data frame // inverted data frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation);
} }
@@ -949,7 +948,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
state->min = ((state->min) + lmin) / 2; state->min = ((state->min) + lmin) / 2;
state->currentslot = 0; state->currentslot = 0;
state->directmode = 1; //Direct mode state->directmode = 1; //Direct mode
if (opts->inverted_dmr == 0) if (opts->inverted_dmr == 0 && opts->dmr_stereo == 0)
{ {
// voice frame // voice frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
@@ -972,7 +971,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// inverted data frame // inverted data frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation);
} }
@@ -992,7 +991,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// voice frame // voice frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "+DMR ", synctest_pos + 1, modulation);
} }
@@ -1011,7 +1010,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state)
{ {
// inverted data frame // inverted data frame
sprintf(state->ftype, "DMR "); sprintf(state->ftype, "DMR ");
if (opts->errorbars == 1) if (opts->errorbars == 1 && opts->dmr_stereo == 0)
{ {
printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation); printFrameSync (opts, state, "-DMR ", synctest_pos + 1, modulation);
} }