diff --git a/src/dmr_bs.c b/src/dmr_bs.c index 728020b..6a15f23 100644 --- a/src/dmr_bs.c +++ b/src/dmr_bs.c @@ -51,8 +51,8 @@ void dmrBS (dsd_opts * opts, dsd_state * state) //memset(&state->TS2SuperFrame, 0, sizeof(TimeSlotVoiceSuperFrame_t)); //Init slot lights - sprintf (state->slot0light, " slot0 "); - sprintf (state->slot1light, " slot1 "); + sprintf (state->slot1light, " slot0 "); + sprintf (state->slot2light, " slot1 "); //Init the color code status state->color_code_ok = 0; diff --git a/src/dsd_frame.c b/src/dsd_frame.c index 16c4d7b..d48dd63 100644 --- a/src/dsd_frame.c +++ b/src/dsd_frame.c @@ -200,8 +200,8 @@ processFrame (dsd_opts * opts, dsd_state * state) sprintf (state->fsubtype, " VOICE "); if (opts->dmr_stereo == 0 && state->synctype < 32) // -T option for DMR (TDMA) stereo { - sprintf (state->slot0light, " slot0 "); sprintf (state->slot1light, " slot1 "); + sprintf (state->slot2light, " slot2 "); processDMRvoice (opts, state); } if (opts->dmr_stereo == 0 && state->synctype == 32) @@ -241,16 +241,16 @@ processFrame (dsd_opts * opts, dsd_state * state) { closeMbeOutFile (opts, state); state->err_str[0] = 0; - sprintf (state->slot0light, " slot0 "); sprintf (state->slot1light, " slot1 "); + sprintf (state->slot2light, " slot2 "); processDMRdata (opts, state); } //switch dmr_stereo to 0 when handling BS data frame syncs with processDMRdata if (opts->dmr_stereo == 1) { state->dmr_stereo = 0; //set the state to zero for handling pure data frames - sprintf (state->slot0light, " slot0 "); sprintf (state->slot1light, " slot1 "); + sprintf (state->slot2light, " slot2 "); processDMRdata (opts, state); } } diff --git a/src/dsd_frame_sync.c b/src/dsd_frame_sync.c index 8a6a9eb..c8fceb8 100644 --- a/src/dsd_frame_sync.c +++ b/src/dsd_frame_sync.c @@ -390,7 +390,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state) fprintf (stderr,"Demod mode: %s Nac: %4X\n", modulation, state->nac); fprintf (stderr,"Frame Type: %s Talkgroup: %7i\n", state->ftype, state->lasttg); fprintf (stderr,"Frame Subtype: %s Source: %12i\n", state->fsubtype, state->lastsrc); - fprintf (stderr,"TDMA activity: %s %s Voice errors: %s\n", state->slot0light, state->slot1light, state->err_str); + fprintf (stderr,"TDMA activity: %s %s Voice errors: %s\n", state->slot1light, state->slot2light, state->err_str); fprintf (stderr,"+----------------------------------------------------------------+\n"); for (i = 0; i < 10; i++) { diff --git a/src/dsd_main.c b/src/dsd_main.c index 2a0d8ed..e54d5f7 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -104,8 +104,8 @@ noCarrier (dsd_opts * opts, dsd_state * state) state->numtdulc = 0; //sprintf (state->slot0light, " slot0 "); //sprintf (state->slot0light, " slot0 "); - sprintf (state->slot0light, ""); sprintf (state->slot1light, ""); + sprintf (state->slot2light, ""); state->firstframe = 0; if (opts->audio_gain == (float) 0) { @@ -313,8 +313,8 @@ initState (dsd_state * state) state->firstframe = 0; //sprintf (state->slot0light, " slot0 "); //sprintf (state->slot1light, " slot1 "); - sprintf (state->slot0light, ""); sprintf (state->slot1light, ""); + sprintf (state->slot2light, ""); state->aout_gain = 25; memset (state->aout_max_buf, 0, sizeof (float) * 200); state->aout_max_buf_p = state->aout_max_buf;