Fixed unitialized variable compilation error

master
ismagom 11 years ago
parent 5181b771fd
commit e84f800e26

@ -640,7 +640,7 @@ int main(int argc, char **argv) {
/* Initialize variables */ /* Initialize variables */
frame_cnt = 0; frame_cnt = 0;
frame_number = -1; frame_number = -1;
/* The number of samples read from the USRP or file corresponds to 1 ms (subframe) */ /* The number of samples read from the USRP or file corresponds to 1 ms (subframe) */
sf_n_samples = 1920 * lte_symbol_sz(sampling_nof_prb)/128; sf_n_samples = 1920 * lte_symbol_sz(sampling_nof_prb)/128;
@ -658,6 +658,8 @@ int main(int argc, char **argv) {
} else { } else {
ret = sync_frame_push(&sframe, input_buffer, sf_buffer); ret = sync_frame_push(&sframe, input_buffer, sf_buffer);
in_ptr = sf_buffer; in_ptr = sf_buffer;
cell_id = 0;
sf_idx = 0;
} }
switch(ret ) { switch(ret ) {
case 0: case 0:

@ -125,6 +125,7 @@ int main(int argc, char **argv) {
float mse_mag, mse_phase; float mse_mag, mse_phase;
lte_cell_t cell; lte_cell_t cell;
cell.nof_ports = 1;
parse_args(argc,argv); parse_args(argc,argv);
if (output_matlab) { if (output_matlab) {

@ -64,7 +64,7 @@ int pdsch_cp(pdsch_t *q, cf_t *input, cf_t *output, ra_prb_t *prb_alloc,
uint32_t s, n, l, lp, lstart, lend, nof_refs; uint32_t s, n, l, lp, lstart, lend, nof_refs;
bool is_pbch, is_sss; bool is_pbch, is_sss;
cf_t *in_ptr = input, *out_ptr = output; cf_t *in_ptr = input, *out_ptr = output;
uint32_t offset; uint32_t offset = 0;
INFO("%s %d RE from %d PRB\n", put ? "Putting" : "Getting", INFO("%s %d RE from %d PRB\n", put ? "Putting" : "Getting",
prb_alloc->re_sf[nsubframe], prb_alloc->slot[0].nof_prb); prb_alloc->re_sf[nsubframe], prb_alloc->slot[0].nof_prb);

Loading…
Cancel
Save