Changeset 148
- Timestamp:
- Jul 14, 2010, 11:39:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/serial-sniffer.py
r147 r148 17 17 import sys 18 18 19 DEBUG = False19 DEBUG = True 20 20 21 21 # Stolen from http://snippets.dzone.com/posts/show/7682 … … 62 62 while send_buffer == "" or recv_buffer == "": 63 63 if send_buffer == "": 64 pdebug("trying to read send_buffer")64 # pdebug("trying to read send_buffer") 65 65 while 1: 66 66 try: … … 73 73 74 74 if recv_buffer == "": 75 pdebug("trying to read recv_buffer")75 # pdebug("trying to read recv_buffer") 76 76 while 1: 77 77 try: 78 with Watchdog( 3):78 with Watchdog(5): 79 79 recv_buffer += recv.read(1) 80 80 except Watchdog:
Note:
See TracChangeset
for help on using the changeset viewer.