summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-01-11 15:17:26 -0800
committerJosh Blum <josh@joshknows.com>2012-01-11 15:17:26 -0800
commit8b8eb519c228738549361884eb3dcf050865a33c (patch)
tree76a8a06437cad9eca4322467e8894bca3fda6928 /host/utils
parent1afac89b4af7a13375e4dca866418e9ae368c42f (diff)
downloaduhd-8b8eb519c228738549361884eb3dcf050865a33c.tar.gz
uhd-8b8eb519c228738549361884eb3dcf050865a33c.tar.bz2
uhd-8b8eb519c228738549361884eb3dcf050865a33c.zip
n2xx: fix burner print if bad rev
Diffstat (limited to 'host/utils')
-rwxr-xr-xhost/utils/usrp_n2xx_net_burner.py2
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: