From: okcsampson Date: Sun, 11 Jun 2017 14:52:16 +0000 (+0000) Subject: Missed a couple changes last update X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=d8d14f6be66776f92525b01455a387a4a93e5ba4;p=freetel-svn-tracking.git Missed a couple changes last update git-svn-id: https://svn.code.sf.net/p/freetel/code@3167 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/ofdm.c b/codec2-dev/src/ofdm.c index b0398629..5a7aaa61 100644 --- a/codec2-dev/src/ofdm.c +++ b/codec2-dev/src/ofdm.c @@ -52,7 +52,7 @@ static void matrix_vector_multiply(struct OFDM *ofdm, complex float *result, com int row, col; for (row = 0; row < OFDM_M; row++) { - result[j] = 0.0f + 0.0f * I; + result[row] = 0.0f + 0.0f * I; for (col = 0; col < (OFDM_NC + 2); col++) { result[row] += (vector[col] * (ofdm->W[row][col] / (float) OFDM_M)); /* complex result */ @@ -234,7 +234,7 @@ struct OFDM *ofdm_create() { complex float temp[OFDM_NC + OFDM_M]; - matrix_vector_multiply(temp, ofdm->W, ofdm->pilots); + matrix_vector_multiply(ofdm, temp, ofdm->pilots); /* * rate_fs_pilot_samples is 160 samples, as we take the last 16 and copy to the front