Per Call Wrong Tone Selection Bug Fix
This commit is contained in:
parent
d1ffcda819
commit
66fd3fd7bf
|
|
@ -189,15 +189,15 @@ void beeper (dsd_opts * opts, dsd_state * state, int type)
|
|||
if (loop == 1)
|
||||
{
|
||||
//only beep on R if dmr_stereo is active and slot 2, else beep on L
|
||||
if (type == 0 && state->dmr_stereo == 1 && opts->audio_out == 1)
|
||||
if (type == 0 && opts->dmr_stereo == 1 && opts->audio_out == 1)
|
||||
{
|
||||
pa_simple_write(opts->pulse_digi_dev_out, buf, sizeof(buf), NULL);
|
||||
}
|
||||
if (type == 1 && state->dmr_stereo == 1 && opts->audio_out == 1)
|
||||
if (type == 1 && opts->dmr_stereo == 1 && opts->audio_out == 1)
|
||||
{
|
||||
pa_simple_write(opts->pulse_digi_dev_outR, buf, sizeof(buf), NULL);
|
||||
}
|
||||
if (state->dmr_stereo == 0 && opts->audio_out == 1)
|
||||
if (opts->dmr_stereo == 0 && opts->audio_out == 1)
|
||||
{
|
||||
pa_simple_write(opts->pulse_digi_dev_out, buf, sizeof(buf), NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
|||
int t2 = (MAC[12+len_a] << 8) | MAC[13+len_a];
|
||||
int t3 = (MAC[14+len_a] << 8) | MAC[15+len_a];
|
||||
int t4 = (MAC[16+len_a] << 8) | MAC[17+len_a];
|
||||
fprintf (stderr, " SG [%05d] KEY [%02X] ALG [%02X]\n ", sg, key, alg);
|
||||
fprintf (stderr, " SG [%05d] KEY [%04X] ALG [%02X]\n ", sg, key, alg);
|
||||
int a = 0;
|
||||
int wgid = 0;
|
||||
//worried a bad decode may cause an oob array crash on this one
|
||||
|
|
@ -387,7 +387,7 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon
|
|||
int t1 = (MAC[9+len_a] << 16) | (MAC[10+len_a] << 8) | MAC[11+len_a];
|
||||
int t2 = (MAC[12+len_a] << 16) | (MAC[13+len_a] << 8) | MAC[14+len_a];
|
||||
int t3 = (MAC[15+len_a] << 16) | (MAC[16+len_a] << 8) | MAC[17+len_a];
|
||||
fprintf (stderr, " SG [%02X] KEY [%02X]", sg, key);
|
||||
fprintf (stderr, " SG [%02X] KEY [%04X]", sg, key);
|
||||
fprintf (stderr, " U1 [%02X] U2 [%02X] U3 [%02X] ", t1, t2, t3);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue