From: travisutk Date: Thu, 8 Jul 2010 15:31:42 +0000 (+0000) Subject: Reading status works. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=e975131e24cb233caaa472d7ec838df33091a88d Reading status works. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@668 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETEM260.py b/client/GoodFETEM260.py index 7bc51ac..93d1bcb 100644 --- a/client/GoodFETEM260.py +++ b/client/GoodFETEM260.py @@ -84,7 +84,7 @@ class GoodFETEM260(GoodFETSPI): return self.EM260spistatus(); if status==0x02: return self.EM260spistatus(); - if not status&0xC0: + if not status&0x80 and status&0x40: print "Status misread."; return 0; return status&1;