Fix to MBE filenames for IMBE types

Fix MBE filenames, no nac/tg on ProVoice type
This commit is contained in:
lwvmobile
2022-02-25 15:27:03 -05:00
committed by GitHub
parent aca0adc4c5
commit bba8579192

View File

@@ -242,7 +242,7 @@ closeMbeOutFile (dsd_opts * opts, dsd_state * state)
strftime (datestr, 31, "%Y-%m-%d-%H%M%S", &timep);
sprintf (newfilename, "%s%s", datestr, ext); //this one
if (state->lastsynctype == 0 || state->lastsynctype)
if (state->lastsynctype == 0 || state->lastsynctype == 1)
{
sprintf (newfilename, "%s-nac%X-tg%i%s", datestr, state->nac, talkgroup, ext);
}