Merge branch 'init_sync_bugfix' into NR_RRC_PRACH_procedures

Conflicts:
	executables/nr-ue.c
This commit is contained in:
Thomas Schlichter
2020-06-03 21:50:01 +02:00
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -858,8 +858,9 @@ void *UE_thread(void *arg) {
usleep(200);
}
if ( decoded_frame_rx != curMsg->proc.frame_rx &&
((decoded_frame_rx+1) % MAX_FRAME_NUMBER) != curMsg->proc.frame_rx )
if ( (decoded_frame_rx != curMsg->proc.frame_rx) &&
(((decoded_frame_rx+1) % MAX_FRAME_NUMBER) != curMsg->proc.frame_rx) &&
(((decoded_frame_rx+2) % MAX_FRAME_NUMBER) != curMsg->proc.frame_rx))
LOG_E(PHY,"Decoded frame index (%d) is not compatible with current context (%d), UE should go back to synch mode\n",
decoded_frame_rx, curMsg->proc.frame_rx );