Fix data conversion parse in ue_dl_nr_file_test

This commit is contained in:
Ismael Gomez 2021-11-12 20:23:34 +01:00 committed by Andre Puschmann
parent 9c6f9f5949
commit e7c2cea032
1 changed files with 3 additions and 3 deletions

View File

@ -130,10 +130,10 @@ static int parse_args(int argc, char** argv)
coreset_len = (uint16_t)strtol(argv[optind], NULL, 10);
break;
case 'A':
dl_arfcn = (uint16_t)strtol(argv[optind], NULL, 10);
dl_arfcn = (uint32_t)strtol(argv[optind], NULL, 10);
break;
case 'a':
ssb_arfcn = (uint16_t)strtol(argv[optind], NULL, 10);
ssb_arfcn = (uint32_t)strtol(argv[optind], NULL, 10);
break;
case 'S':
srsran_use_standard_symbol_size(true);
@ -221,7 +221,7 @@ static int work_ue_dl(srsran_ue_dl_nr_t* ue_dl, srsran_slot_cfg_t* slot)
// check payload is not all null
bool all_zero = true;
for (uint32_t i = 0; i < pdsch_cfg.grant.tb[0].tbs / 8; ++i) {
for (int i = 0; i < pdsch_cfg.grant.tb[0].tbs / 8; ++i) {
if (pdsch_res.tb[0].payload[i] != 0x0) {
all_zero = false;
break;