Skip to content

Commit

Permalink
Adding band information for NBIoT
Browse files Browse the repository at this point in the history
  • Loading branch information
FlUxIuS committed Feb 19, 2023
1 parent 86a921c commit 8479ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/examples/cell_search_nbiot_modmobmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ int main(int argc, char** argv)
cell.base.cp = SRSRAN_CP_NORM;

cellog_fifo = open(fifo_file, O_WRONLY);
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;POWER=%.1f dBm\n", cell.n_id_ncell, channels[freq].id, channels[freq].fd, srsran_convert_power_to_dB(found_cells[i].peak));
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;BAND=%d;POWER=%.1f dBm\n", cell.n_id_ncell, channels[freq].id, channels[freq].fd, band,srsran_convert_power_to_dB(found_cells[i].peak));
write(cellog_fifo, logstr, strlen(logstr)+1);
close(cellog_fifo);

Expand Down

0 comments on commit 8479ae4

Please sign in to comment.