Merge pull request #76 from lwvmobile/LRRPpatch2

LRRP Patch 2
This commit is contained in:
lwvmobile
2022-08-13 12:35:52 -04:00
committed by GitHub
2 changed files with 7 additions and 4 deletions

View File

@@ -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
}

View File

@@ -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;