mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-16 18:57:24 -05:00
Cleanup Straggler Code and Language
Cleanup Straggler Code and Language --only dropped one F-Bomb this time
This commit is contained in:
@@ -146,7 +146,7 @@ PrintAMBEData (dsd_opts * opts, dsd_state * state, char *ambe_d) //For DMR Stere
|
||||
|
||||
err = (unsigned char) state->errs2;
|
||||
k = 0;
|
||||
if (opts->dmr_stereo == 0) //was 0, switched while working out des
|
||||
if (opts->dmr_stereo == 0)
|
||||
{
|
||||
fprintf (stderr, "\n");
|
||||
}
|
||||
@@ -181,7 +181,7 @@ PrintAMBEData (dsd_opts * opts, dsd_state * state, char *ambe_d) //For DMR Stere
|
||||
b = ambe_d[48];
|
||||
if (opts->dmr_stereo == 1) //need to fix the printouts again
|
||||
{
|
||||
fprintf (stderr, "\n"); //temp disable while I work on DES
|
||||
fprintf (stderr, "\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -677,7 +677,6 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
if (S_ISREG(stat_buf.st_mode))
|
||||
{
|
||||
//state->symbolfile = fopen("adp_fdma.bin", "r");
|
||||
opts->symbolfile = fopen(opts->audio_in_dev, "r");
|
||||
opts->audio_in_type = 4; //symbol capture bin files
|
||||
}
|
||||
|
||||
@@ -779,14 +779,6 @@ void NXDN_decode_VCALL(dsd_opts * opts, dsd_state * state, uint8_t * Message)
|
||||
//state->nxdn_key = (KeyID & 0xFF);
|
||||
}
|
||||
|
||||
//print scrambler key value if manually inserted
|
||||
if (state->nxdn_cipher_type == 0x01 && state->R > 0) //scrambler
|
||||
{
|
||||
fprintf (stderr, "%s", KYEL);
|
||||
fprintf(stderr, "Value: 0x%04llX", state->R); //use R and not miN
|
||||
fprintf (stderr, "%s", KNRM);
|
||||
}
|
||||
|
||||
if(state->NxdnElementsContent.VCallCrcIsGood)
|
||||
{
|
||||
if ( (SourceUnitID & 0xFFFF) > 0 )
|
||||
@@ -841,7 +833,7 @@ void NXDN_decode_VCALL_IV(dsd_opts * opts, dsd_state * state, uint8_t * Message)
|
||||
for(i = 0; i < 8; i++)
|
||||
{
|
||||
state->NxdnElementsContent.IV[i] = (uint8_t)ConvertBitIntoBytes(&Message[(i + 1) * 8], 8);
|
||||
//let's load this mother fucker up then lol
|
||||
|
||||
state->payload_miN = state->payload_miN << 8 | state->NxdnElementsContent.IV[i];
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,6 @@ processLDU1 (dsd_opts* opts, dsd_state* state)
|
||||
{
|
||||
lsd2[i] = lsd[i] + '0';
|
||||
}
|
||||
//skip two octets since LSD is part of the encryption portion
|
||||
|
||||
// TODO: error correction of the LSD bytes...
|
||||
// TODO: do something useful with the LSD bytes...
|
||||
|
||||
@@ -169,7 +169,6 @@ processLDU2 (dsd_opts * opts, dsd_state * state)
|
||||
{
|
||||
lsd2[i] = lsd[i] + '0';
|
||||
}
|
||||
//skip two octets since LSD is part of the encryption portion
|
||||
|
||||
// TODO: error correction of the LSD bytes...
|
||||
// TODO: do something useful with the LSD bytes...
|
||||
|
||||
Reference in New Issue
Block a user