Cleanup Straggler Code and Language
Cleanup Straggler Code and Language --only dropped one F-Bomb this time
This commit is contained in:
parent
f45f4fe413
commit
5d44425b10
|
|
@ -254,13 +254,13 @@ typedef struct
|
|||
|
||||
uint32_t rtlsdr_center_freq;
|
||||
int rtlsdr_ppm_error; //was int, changed to float
|
||||
int audio_in_type; // 0 for device, 1 for file, 2 for portaudio, 3 for rtlsdr
|
||||
int audio_in_type; // 0 for device, 1 for file, 3 for rtlsdr
|
||||
char audio_out_dev[1024];
|
||||
int audio_out_fd;
|
||||
SNDFILE *audio_out_file;
|
||||
SF_INFO *audio_out_file_info;
|
||||
|
||||
int audio_out_type; // 0 for device, 1 for file, 2 for portaudio
|
||||
int audio_out_type; // 0 for device, 1 for file,
|
||||
int split;
|
||||
int playoffset;
|
||||
int playoffsetR;
|
||||
|
|
|
|||
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Reference in New Issue