diff --git a/src/dmr_sync.c b/src/dmr_sync.c index 6f9faab..e1e4b31 100644 --- a/src/dmr_sync.c +++ b/src/dmr_sync.c @@ -144,7 +144,9 @@ void Process34Data(dsd_opts * opts, dsd_state * state, unsigned char tdibits[98] //hard code filename override for those wanting to use other software //pFile = fopen("DSDPlus.LRRP", "a"); - fprintf (pFile, "%s\t %s\t", getDateL(), getTimeL()); //current timestamp, may find a way to only add this IF no included timestamp in LRRP data? + //seperate these two values since they cause issues with garbage writing to files in some environments (cygwin) + fprintf (pFile, "%s\t ", getDateL() ); //current date, may find a way to only add this IF no included timestamp in LRRP data? + fprintf (pFile, "%s\t ", getTimeL()) ; //current timestamp, may find a way to only add this IF no included timestamp in LRRP data? fprintf (pFile, "%08lld\t", state->dmr_lrrp_source[state->currentslot]); //source address from data header } @@ -1216,8 +1218,9 @@ void Process12Data(dsd_opts * opts, dsd_state * state, uint8_t info[196], uint8_ //hard code filename override for those wanting to use other software //pFile = fopen("DSDPlus.LRRP", "a"); - - fprintf (pFile, "%s\t %s\t", getDateL(), getTimeL()); //current timestamp, may find a way to only add this IF no included timestamp in LRRP data? + //seperate these two values since they cause issues with garbage writing to files in some environments (cygwin) + fprintf (pFile, "%s\t ", getDateL() ); //current date, may find a way to only add this IF no included timestamp in LRRP data? + fprintf (pFile, "%s\t ", getTimeL() ); //current timestamp, may find a way to only add this IF no included timestamp in LRRP data? fprintf (pFile, "%08lld\t", state->dmr_lrrp_source[state->currentslot]); //source address from data header } diff --git a/src/dsd_main.c b/src/dsd_main.c index 37e6649..51ef4b9 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -931,7 +931,7 @@ main (int argc, char **argv) } opts.dmr_mute_encL = 0; opts.dmr_mute_encR = 0; - if (state.K == 1) + if (state.K == 0) { opts.dmr_mute_encL = 1; opts.dmr_mute_encR = 1;