aboutsummaryrefslogtreecommitdiff
path: root/src/cohpsk_mod.c
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-07-14 10:33:23 +0930
committerGitHub <[email protected]>2023-07-14 10:33:23 +0930
commit6588e77f38bdebd7adffe091b22e7760d95d0ccb (patch)
treee015b6d01db10ff219f5d1cf49eb3dcadb7dbe48 /src/cohpsk_mod.c
parentac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (diff)
parent98992bc3585124981450659394d6f84032b81370 (diff)
Merge pull request #1 from drowe67/dr-cleanup
Cleanup
Diffstat (limited to 'src/cohpsk_mod.c')
-rw-r--r--src/cohpsk_mod.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cohpsk_mod.c b/src/cohpsk_mod.c
index b6e0fb4..5d5443a 100644
--- a/src/cohpsk_mod.c
+++ b/src/cohpsk_mod.c
@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
int tx_bits[2*COHPSK_BITS_PER_FRAME];
COMP tx_fdm[COHPSK_NOM_SAMPLES_PER_FRAME];
short tx_fdm_scaled[COHPSK_NOM_SAMPLES_PER_FRAME];
- int frames, diversity;
+ int diversity;
int i;
if (argc < 3) {
@@ -91,10 +91,7 @@ int main(int argc, char *argv[])
}
fprintf(stderr, "diversity: %d\n", diversity);
- frames = 0;
-
while(fread(tx_bits_char, sizeof(char), COHPSK_BITS_PER_FRAME*diversity, fin) == COHPSK_BITS_PER_FRAME*diversity) {
- frames++;
for(i=0; i<COHPSK_BITS_PER_FRAME*diversity; i++)
tx_bits[i] = tx_bits_char[i];