diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-21 13:52:05 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-21 17:24:18 +0200 |
commit | b9423b25b6f02246430a8b16a3c06616d0c68dc8 (patch) | |
tree | 718a22ace91017deca4a49012e2107fa06a53942 /Transceiver52M/device/uhd/UHDDevice.cpp | |
parent | 069f5cd85716b0c09054a5262f2f64ea91bd0536 (diff) |
lms,uhd: Skip re-assigning same band
There's no need to spend time looking up again the same band
description.
Change-Id: I6f5631c9e64b9c261d52a856d757d08d2f336947
Diffstat (limited to 'Transceiver52M/device/uhd/UHDDevice.cpp')
-rw-r--r-- | Transceiver52M/device/uhd/UHDDevice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Transceiver52M/device/uhd/UHDDevice.cpp b/Transceiver52M/device/uhd/UHDDevice.cpp index 7a8eb9b..bc39a6d 100644 --- a/Transceiver52M/device/uhd/UHDDevice.cpp +++ b/Transceiver52M/device/uhd/UHDDevice.cpp @@ -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; } |