added printf at start of buffer loop

pull/28/head
alanbjohnston 6 years ago committed by GitHub
parent 7d22bd68da
commit 725b14af1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -762,11 +762,14 @@ int get_tlm_fox() {
int data;
int val;
int offset = 0;
printf("\nAt start of buffer loop, syncBits %d samples %d ctr %d\n", syncBits, samples, ctr);
// for (i = 1; i <= SYNC_BITS * SAMPLES; i++)
for (i = 1; i <= syncBits * samples; i++)
{
write_wave(ctr, buffer[alt]);
printf("%d ",ctr);
// if ( (i % SAMPLES) == 0) {
if ( (i % samples) == 0) {
// int bit = SYNC_BITS - i/SAMPLES + 1;
@ -794,7 +797,7 @@ int get_tlm_fox() {
}
}
}
printf("\nValue of ctr after header: %d Buffer Len: %d\n\n", ctr, buffSize);
printf("\n\nValue of ctr after header: %d Buffer Len: %d\n\n", ctr, buffSize);
for (i = 1;
// i <= (10 * (HEADER_LEN + DATA_LEN * PAYLOADS + RS_FRAMES * PARITY_LEN) * SAMPLES); i++) // 572

Loading…
Cancel
Save

Powered by TurnKey Linux.