X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCCSPI.py;h=0e2d787b1a216477cebb9fe8036f4940724fb43e;hp=43001b815939910be71721e856370cb0a9166435;hb=aac70d59ea583f5310adf9cebdbcaff6724f8f49;hpb=a89c657d2227ab16d78d136ca94a4ae8a7feb0d8 diff --git a/client/GoodFETCCSPI.py b/client/GoodFETCCSPI.py index 43001b8..0e2d787 100644 --- a/client/GoodFETCCSPI.py +++ b/client/GoodFETCCSPI.py @@ -89,7 +89,8 @@ class GoodFETCCSPI(GoodFET): reg, val, self.peek(reg,bytes)); - return; + return False; + return True; def status(self): """Read the status byte.""" @@ -200,7 +201,7 @@ class GoodFETCCSPI(GoodFET): and that also sends a forged ACK if needed.""" data = ""; self.writecmd(self.CCSPIAPP,0xA1,len(data),data); - time.sleep(30); + print "Got:", data, "and", self.data return; def RF_modulated_spectrum(self):