mirror of https://github.com/PentHertz/srsLTE.git
Avoid negative offset in neighbour cell search
This commit is contained in:
parent
dc21580695
commit
b77e3b0be5
|
@ -1099,7 +1099,7 @@ phch_recv::measure::ret_code phch_recv::measure::run_multiple_subframes(cf_t *in
|
|||
ret_code ret = IDLE;
|
||||
|
||||
offset = offset-sf_len/2;
|
||||
if (offset < 0) {
|
||||
while (offset < 0) {
|
||||
offset += sf_len;
|
||||
sf_idx ++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue