replacing cell_notdetected with cell_detected in initial_sync structure

This commit is contained in:
francescomani
2024-03-19 09:59:07 +01:00
parent 1fa6be2a3d
commit ee3dcc5c77
4 changed files with 32 additions and 25 deletions
+4 -4
View File
@@ -766,10 +766,10 @@ int main(int argc, char **argv)
}
if (UE->is_synchronized == 0) {
UE_nr_rxtx_proc_t proc={0};
nr_initial_sync_t ret = nr_initial_sync(&proc, UE, 1, 0);
printf("nr_initial_sync1 returns %d\n", ret.cell_notdetected);
if (ret.cell_notdetected)
n_errors++;
nr_initial_sync_t ret = nr_initial_sync(&proc, UE, 1, 0);
printf("nr_initial_sync1 returns %s\n", ret.cell_detected ? "cell detected" : "cell not detected");
if (!ret.cell_detected)
n_errors++;
}
else {
UE_nr_rxtx_proc_t proc={0};