From 8b8eb519c228738549361884eb3dcf050865a33c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 11 Jan 2012 15:17:26 -0800 Subject: n2xx: fix burner print if bad rev --- host/utils/usrp_n2xx_net_burner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/utils') 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: -- cgit v1.2.3