diff --git a/src/edacs-fme.c b/src/edacs-fme.c index 9ffd458..0d0406d 100644 --- a/src/edacs-fme.c +++ b/src/edacs-fme.c @@ -491,6 +491,10 @@ void edacs(dsd_opts * opts, dsd_state * state) } } + //TG hold on EDACS EA -- block non-matching target, allow matching group + if (state->tg_hold != 0 && state->tg_hold != group) sprintf (mode, "%s", "B"); + if (state->tg_hold != 0 && state->tg_hold == group) sprintf (mode, "%s", "A"); + if (mt1 == 0x1) fprintf (stderr, " TDMA Call"); //never observed, wonder if any EDACS systems ever carried a TDMA signal (X2-TDMA?) if (mt1 == 0x2) fprintf (stderr, " Group Data Call"); //Never Seen this one before if (mt1 == 0x3) fprintf (stderr, " Digital Call"); //ProVoice, this is what we always get on SLERS EA @@ -629,6 +633,10 @@ void edacs(dsd_opts * opts, dsd_state * state) } } + //TG hold on EDACS Standard/Net -- block non-matching target, allow matching afs (decimal) + if (state->tg_hold != 0 && state->tg_hold != afs) sprintf (mode, "%s", "B"); + if (state->tg_hold != 0 && state->tg_hold == afs) sprintf (mode, "%s", "A"); + //NOTE: Restructured below so that analog and digital are handled the same, just that when //its analog, it will now start edacs_analog which will while loop analog samples until //signal level drops (RMS, or a dotting sequence is detected)