aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorLars Amsel <lars.amsel@ni.com>2021-06-14 14:58:54 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-23 13:57:15 -0500
commit7efa398272b1c41884dd727045f2ae8e64cbf647 (patch)
treea02dd34a161431db4160103d8b8dda19fc2beb2e /host
parent9958558c2f4dbe7c8fe2bec22effbf4919c82d59 (diff)
downloaduhd-7efa398272b1c41884dd727045f2ae8e64cbf647.tar.gz
uhd-7efa398272b1c41884dd727045f2ae8e64cbf647.tar.bz2
uhd-7efa398272b1c41884dd727045f2ae8e64cbf647.zip
cal: add more error number for ADC overload
also added short comment which erro originates from which driver
Diffstat (limited to 'host')
-rw-r--r--host/python/uhd/usrp/cal/ni_rf_instr.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/python/uhd/usrp/cal/ni_rf_instr.py b/host/python/uhd/usrp/cal/ni_rf_instr.py
index 1b6d34f4e..5d1b223e2 100644
--- a/host/python/uhd/usrp/cal/ni_rf_instr.py
+++ b/host/python/uhd/usrp/cal/ni_rf_instr.py
@@ -247,7 +247,11 @@ class RFSADevice:
return mean_val.value
except OSError as ex:
# increase ref level on ADC or DSA overload
- if getattr(ex, 'winerror') in [373002, 373003]:
+ if getattr(ex, 'winerror') in [
+ 0x0005B10A, # DSP overflow (RFSA)
+ 0x0005B10B, # ADC overload (RFSA)
+ 0x3FFA9001, # ADC overload (mxl)
+ ]:
self.set_reference_level(self.get_reference_level() + 5)
else:
raise ex