Avoid negative offset in neighbour cell search

This commit is contained in:
Ismael Gomez 2018-03-13 20:01:09 +01:00
parent dc21580695
commit b77e3b0be5
1 changed files with 1 additions and 1 deletions

View File

@ -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 ++;
}