Fixed GoodFETSPI by adding optional third argument to peek8().
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 6 Oct 2010 18:33:09 +0000 (18:33 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 6 Oct 2010 18:33:09 +0000 (18:33 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@744 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETSPI.py

index 5875810..6c8f504 100644 (file)
@@ -34,7 +34,7 @@ class GoodFETSPI25C(GoodFETSPI):
     READ=0x03;
     WRITE=0x02;
     
-    def peek8(self,adr):
+    def peek8(self,adr,memory="vn"):
         """Read a byte from the given address."""
         data=self.SPItrans([self.READ,(adr>>8)&0xFF,adr&0xFF,0x00]);
         return ord(data[3]);