X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETNRF.py;h=70a0cb1aa2502771709ece66d534b055ff1ff2c0;hp=85a687bc040641d19cd90f4811bc33a3c48578a3;hb=f7fdc48f01ada713d5034763a2f3395fe2a7c51b;hpb=7c5395b53002982ccb04c8dd7556484c0dc84b56 diff --git a/client/GoodFETNRF.py b/client/GoodFETNRF.py index 85a687b..70a0cb1 100644 --- a/client/GoodFETNRF.py +++ b/client/GoodFETNRF.py @@ -5,7 +5,7 @@ # # This code is being rewritten and refactored. You've been warned! -import sys, time, string, cStringIO, struct, glob, serial, os; +import sys, time, string, cStringIO, struct, glob, os; from GoodFET import GoodFET; @@ -65,9 +65,11 @@ class GoodFETNRF(GoodFET): data=data+[(val>>(8*i))&0xFF]; self.writecmd(self.NRFAPP,0x03,len(data),data); if self.peek(reg,bytes)!=val and reg!=0x07: - print "Warning, failed to set r%02x=%02x, got %02x." %(reg, - val, - self.peek(reg,bytes)); + print "Warning, failed to set r%02x=%02x, got %02x." %( + reg, + val, + self.peek(reg,bytes)); + return; def status(self):