diff options
author | Sugandha Gupta <sugandha.gupta@ettus.com> | 2019-02-19 16:39:59 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-02-19 18:13:13 -0800 |
commit | fd7d85b1d2679156cb019e263b881703a1cc4b1b (patch) | |
tree | abf7fb51e1aac47d4f2ac3d4a9cc69b33ff8706b /mpm | |
parent | cccc4f4639bb63971ac66a11dc7fc1a2b2c42a24 (diff) | |
download | uhd-fd7d85b1d2679156cb019e263b881703a1cc4b1b.tar.gz uhd-fd7d85b1d2679156cb019e263b881703a1cc4b1b.tar.bz2 uhd-fd7d85b1d2679156cb019e263b881703a1cc4b1b.zip |
e320: add fpga_version_hash to e320 device info
Fixes uhd_usrp_probe FPGA version githash to report the
correct hash and not 'UNKNOWN'.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/e320.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/e320.py b/mpm/python/usrp_mpm/periph_manager/e320.py index dbcaead2a..aae4a2868 100644 --- a/mpm/python/usrp_mpm/periph_manager/e320.py +++ b/mpm/python/usrp_mpm/periph_manager/e320.py @@ -441,6 +441,8 @@ class e320(ZynqComponents, PeriphManagerBase): device_info.update({ 'fpga_version': "{}.{}".format( *self.mboard_regs_control.get_compat_number()), + 'fpga_version_hash': "{:x}.{}".format( + *self.mboard_regs_control.get_git_hash()), 'fpga': self.updateable_components.get('fpga', {}).get('type',""), }) return device_info |