Minor aesthetic changes and fix memory issue

This commit is contained in:
Xavier Arteaga 2020-11-12 14:00:05 +01:00 committed by Andre Puschmann
parent 0396ebae17
commit 7495986b5c
3 changed files with 2 additions and 4 deletions

View File

@ -91,7 +91,7 @@ extern "C" {
/**
* @brief defines the maximum number of resource elements per PRB
* @remark Defined in TS 36.214 V15.10.0 5.1.3.2 Transport block size determination, point 1, second bullet
* @remark Defined in TS 38.214 V15.10.0 5.1.3.2 Transport block size determination, point 1, second bullet
*/
#define SRSLTE_MAX_NRE_NR 156

View File

@ -726,7 +726,7 @@ int srslte_dmrs_pdsch_estimate(srslte_dmrs_pdsch_t* q,
uint32_t symbol_idx = 0;
uint32_t count = 0;
for (uint32_t l = grant->S; l < grant->S + grant->L; l++) {
while (symbols[symbol_idx] < l && symbol_idx < nof_symbols) {
while (symbols[symbol_idx] < l && symbol_idx < nof_symbols - 1) {
symbol_idx++;
}

View File

@ -39,7 +39,6 @@ int pdsch_nr_init_common(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
int srslte_pdsch_nr_init_enb(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
{
if (q == NULL) {
return SRSLTE_ERROR_INVALID_INPUTS;
}
@ -58,7 +57,6 @@ int srslte_pdsch_nr_init_enb(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* ar
int srslte_pdsch_nr_init_ue(srslte_pdsch_nr_t* q, const srslte_pdsch_args_t* args)
{
if (q == NULL || args == NULL) {
return SRSLTE_ERROR_INVALID_INPUTS;
}