From: travisutk Date: Fri, 26 Feb 2010 20:00:20 +0000 (+0000) Subject: Some CC2430 definition have empty descriptions. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=aeae8f062e42edfc52ecbc8ad85ce80fccc6ae46;ds=inline Some CC2430 definition have empty descriptions. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@353 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETCC.py b/client/GoodFETCC.py index 08cdea0..e9d587a 100644 --- a/client/GoodFETCC.py +++ b/client/GoodFETCC.py @@ -42,7 +42,8 @@ class GoodFETCC(GoodFET): elif g.localName=="Address": address=g.childNodes[0].nodeValue; elif g.localName=="Description": - description=g.childNodes[0].nodeValue; + if g.childNodes!=0: + description=g.childNodes[0].nodeValue; #print "SFRX(%10s, %s); /* %50s */" % (name,address, description); print "%10s=0x%02x; /* %50s */" % ( name,self.CCpeekdatabyte(eval(address)), description);