lms,uhd: Skip re-assigning same band

There's no need to spend time looking up again the same band
description.

Change-Id: I6f5631c9e64b9c261d52a856d757d08d2f336947
This commit is contained in:
Pau Espin 2021-09-21 13:52:05 +02:00
parent 069f5cd857
commit b9423b25b6
2 changed files with 8 additions and 4 deletions

View File

@ -246,8 +246,10 @@ bool LMSDevice::set_band(enum gsm_band req_band)
return false;
}
band = req_band;
assign_band_desc(band);
if (band == 0) {
band = req_band;
assign_band_desc(band);
}
return true;
}

View File

@ -264,8 +264,10 @@ bool uhd_device::set_band(enum gsm_band req_band)
return false;
}
band = req_band;
assign_band_desc(band);
if (band == 0) {
band = req_band;
assign_band_desc(band);
}
return true;
}