diff options
| author | drowe67 <[email protected]> | 2023-07-14 10:33:23 +0930 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-14 10:33:23 +0930 |
| commit | 6588e77f38bdebd7adffe091b22e7760d95d0ccb (patch) | |
| tree | e015b6d01db10ff219f5d1cf49eb3dcadb7dbe48 /src/c2dec.c | |
| parent | ac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (diff) | |
| parent | 98992bc3585124981450659394d6f84032b81370 (diff) | |
Merge pull request #1 from drowe67/dr-cleanup
Cleanup
Diffstat (limited to 'src/c2dec.c')
| -rw-r--r-- | src/c2dec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/c2dec.c b/src/c2dec.c index ad0eea9..176d516 100644 --- a/src/c2dec.c +++ b/src/c2dec.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) unsigned char *bits; float *softdec_bits; char *bitperchar_bits; - int nsam, nbit, nbyte, i, byte, frames, bits_proc, bit_errors, error_mode; + int nsam, nbit, nbyte, i, byte, bits_proc, bit_errors, error_mode; int nstart_bit, nend_bit, bit_rate; int state, next_state; float ber, r, burst_length, burst_period, burst_timer, ber_est; @@ -173,7 +173,7 @@ int main(int argc, char *argv[]) bits = (unsigned char*)malloc(nbyte*sizeof(char)); softdec_bits = (float*)malloc(nbit*sizeof(float)); bitperchar_bits = (char*)malloc(nbit*sizeof(char)); - frames = bit_errors = bits_proc = 0; + bit_errors = bits_proc = 0; nstart_bit = 0; nend_bit = nbit-1; @@ -256,8 +256,6 @@ int main(int argc, char *argv[]) } while(ret) { - frames++; - // apply bit errors, MSB of byte 0 is bit 0 in frame, only works in packed mode if ((error_mode == UNIFORM) || (error_mode == UNIFORM_RANGE)) { |
