- Timestamp:
- Jul 15, 2010, 8:21:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/serial-sniffer.py
r148 r153 39 39 40 40 41 send = open('/dev/ttyUSB0','r ', buffering=0)42 recv = open('/dev/ttyUSB1','r ', buffering=0)41 send = open('/dev/ttyUSB0','rb', buffering=0) 42 recv = open('/dev/ttyUSB1','rb', buffering=0) 43 43 comment = open('/dev/stdin','r', buffering=0) 44 44 … … 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: … … 68 68 send_buffer += send.read(1) 69 69 except Watchdog: 70 pdebug("trying to read send_buffer") 70 71 break 71 72 else: … … 73 74 74 75 if recv_buffer == "": 75 #pdebug("trying to read recv_buffer")76 pdebug("trying to read recv_buffer") 76 77 while 1: 77 78 try:
Note:
See TracChangeset
for help on using the changeset viewer.