Fixed bug where first byte of EM260 response would be lost.
[goodfet] / firmware / apps / spi / spi.c
index c533a74..eed9553 100644 (file)
@@ -278,8 +278,8 @@ void spihandle(unsigned char app,
     if(!i)
       debugstr("Gave up on host interrupt.");
         
-    len=64;
-    for(i=0;i<len;i++)
+    len=32;
+    for(i=1;i<len;i++)
       cmddata[i]=spitrans8(0xFF);