]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - tools/debug.py
Upsized EP2 FIFO to 4x 1024
[sigrok-firmware-fx2lafw.git] / tools / debug.py
index cd197762d53405c4c7867f91dcd6c3fcbb0bb720..b3be5180e50d87f4014da5cdb1c3376c4f810143 100755 (executable)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
-import struct 
+import struct
 
 from fx2load import *
 
-# Connect to the device
+# Connect to the device.
 openfx2(0x6666, 0x0019)
 
-# Read debug messages
+# Read debug messages.
 while 1:
-    buf='\x00'*200  
-    f.ep_bulk( buf, 0x86, 1000)
-    print buf
+    buf = '\x00' * 200
+    f.ep_bulk(buf, 0x86, 1000)
+    print(buf)