X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=tools%2Fdebug.py;fp=tools%2Fdebug.py;h=b3be5180e50d87f4014da5cdb1c3376c4f810143;hb=106ee45c35ebae9b2ec9370813ab20cbbe22d2e2;hp=cd197762d53405c4c7867f91dcd6c3fcbb0bb720;hpb=a75a9ccb67defc791ccf9fdf73d4e149436dae3f;p=sigrok-firmware-fx2lafw.git diff --git a/tools/debug.py b/tools/debug.py index cd197762..b3be5180 100755 --- a/tools/debug.py +++ b/tools/debug.py @@ -17,15 +17,15 @@ # 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)