Changeset 146
- Timestamp:
- Jul 14, 2010, 10:37:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/serial-sniffer.py
r145 r146 11 11 import signal 12 12 import os 13 import sys 13 14 14 15 # Stolen from http://snippets.dzone.com/posts/show/7682 … … 55 56 break 56 57 else: 57 print "# send_buffer filled %s" % str_to_hex(send_buffer)58 sys.stderr.write("# send_buffer filled %s" % str_to_hex(send_buffer)) 58 59 59 60 if recv_buffer == "": … … 65 66 break 66 67 else: 67 print "# recv_buffer filled %s" % str_to_hex(recv_buffer)68 sys.stderr.write("# recv_buffer filled %s" % str_to_hex(recv_buffer)) 68 69 69 70 # Try to fetch comment if we have any … … 90 91 try: 91 92 main() 92 except :93 except KeyboardInterrupt: 93 94 pass 94 95 os.system('stty echo')
Note:
See TracChangeset
for help on using the changeset viewer.