Skip to content

Commit

Permalink
Disable temporary fprintf of symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Dec 8, 2024
1 parent dc9be4f commit cc78240
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pipeline/rade_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ void rade_text_rx(rade_text_t ptr, float* syms, int symSize)
rade_text_impl_t* obj = (rade_text_impl_t*)ptr;
assert(obj != NULL);

FILE* fp = fopen("/home/parallels/freedv-gui/syms_orig.f32", "wb");
assert(fp != NULL);
FILE* fp2 = fopen("/home/parallels/freedv-gui/syms_rot.f32", "wb");
assert(fp2 != NULL);
//FILE* fp = fopen("/home/parallels/freedv-gui/syms_orig.f32", "wb");
//assert(fp != NULL);
//FILE* fp2 = fopen("/home/parallels/freedv-gui/syms_rot.f32", "wb");
//assert(fp2 != NULL);

fwrite(syms, sizeof(float), LDPC_TOTAL_SIZE_BITS, fp);
fclose(fp);
//fwrite(syms, sizeof(float), LDPC_TOTAL_SIZE_BITS, fp);
//fclose(fp);

memcpy(obj->inbound_pending_syms, syms, sizeof(COMP) * LDPC_TOTAL_SIZE_BITS / 2);
/*gp_deinterleave_comp(
Expand Down Expand Up @@ -251,8 +251,8 @@ void rade_text_rx(rade_text_t ptr, float* syms, int symSize)
obj->inbound_pending_amps[index]);
}

fwrite(obj->inbound_pending_syms, sizeof(float), LDPC_TOTAL_SIZE_BITS, fp2);
fclose(fp2);
//fwrite(obj->inbound_pending_syms, sizeof(float), LDPC_TOTAL_SIZE_BITS, fp2);
//fclose(fp2);

// We have all the bits we need, so we're ready to decode.
char decodedStr[RADE_TEXT_MAX_RAW_LENGTH + 1];
Expand Down

0 comments on commit cc78240

Please sign in to comment.