From: travisutk Date: Sat, 26 Feb 2011 20:05:31 +0000 (+0000) Subject: Ignore status fields of register 0x18 in the CC2420 during GoodFETCCSPI.poke(). X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=d2d2799e450a28b1214aa2c6ccb4d065196c0911;ds=sidebyside Ignore status fields of register 0x18 in the CC2420 during GoodFETCCSPI.poke(). git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@958 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETCCSPI.py b/client/GoodFETCCSPI.py index 39fa181..8a216b3 100644 --- a/client/GoodFETCCSPI.py +++ b/client/GoodFETCCSPI.py @@ -84,7 +84,7 @@ class GoodFETCCSPI(GoodFET): """Write a CCSPI Register.""" data=[reg,(val>>8)&0xFF,val&0xFF]; self.writecmd(self.CCSPIAPP,0x03,len(data),data); - if self.peek(reg,bytes)!=val: + if self.peek(reg,bytes)!=val and reg!=0x18: print "Warning, failed to set r%02x=0x%04x, got %02x." %( reg, val,