root/usb_console/ascii_dump.py

Revision 454:3333270c2a78, 161 bytes (checked in by Maxime Petazzoni <maxime.petazzoni@…>, 14 months ago)

Improved USB dump reading utility.

  • Property exe set to *
Line 
1#!/usr/bin/env python
2
3# ASCII dump beautifier
4def beautify(data, size):
5    s = ""
6    for i in xrange(size):
7      s = "%s%s" % (s, chr(data[i]))
8    print s
9
Note: See TracBrowser for help on using the browser.