Merge pull request #39 from lwvmobile/lwvmobile-patch-3

Fix to MBE filenames for IMBE types
This commit is contained in:
lwvmobile
2022-02-25 15:27:21 -05:00
committed by GitHub

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);
}