diff options
author | Josh Blum <josh@joshknows.com> | 2012-01-11 15:17:26 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-01-11 15:17:26 -0800 |
commit | 8b8eb519c228738549361884eb3dcf050865a33c (patch) | |
tree | 76a8a06437cad9eca4322467e8894bca3fda6928 /host/utils/usrp_n2xx_net_burner.py | |
parent | 1afac89b4af7a13375e4dca866418e9ae368c42f (diff) | |
download | uhd-8b8eb519c228738549361884eb3dcf050865a33c.tar.gz uhd-8b8eb519c228738549361884eb3dcf050865a33c.tar.bz2 uhd-8b8eb519c228738549361884eb3dcf050865a33c.zip |
n2xx: fix burner print if bad rev
Diffstat (limited to 'host/utils/usrp_n2xx_net_burner.py')
-rwxr-xr-x | host/utils/usrp_n2xx_net_burner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/usrp_n2xx_net_burner.py b/host/utils/usrp_n2xx_net_burner.py index e8fc3d197..31c94405b 100755 --- a/host/utils/usrp_n2xx_net_burner.py +++ b/host/utils/usrp_n2xx_net_burner.py @@ -282,7 +282,7 @@ class burner_socket(object): (flash_size, sector_size) = self.get_flash_info() hw_rev = self.get_hw_rev() - if(hw_rev != 0): print("Hardware type: %s" % n2xx_revs[hw_rev][0]) + if n2xx_revs.has_key(hw_rev): print("Hardware type: %s" % n2xx_revs[hw_rev][0]) print("Flash size: %i\nSector size: %i\n" % (flash_size, sector_size)) if fpga: |