Changeset 148


Ignore:
Timestamp:
Jul 14, 2010, 11:39:59 PM (14 years ago)
Author:
Rick van der Zwet
Message:

Script production ready

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/serial-sniffer.py

    r147 r148  
    1717import sys
    1818
    19 DEBUG = False
     19DEBUG = True
    2020
    2121# Stolen from http://snippets.dzone.com/posts/show/7682
     
    6262    while send_buffer == "" or recv_buffer == "":
    6363      if send_buffer == "":
    64         pdebug("trying to read send_buffer")
     64        # pdebug("trying to read send_buffer")
    6565        while 1:
    6666          try:
     
    7373 
    7474      if recv_buffer == "":
    75         pdebug("trying to read recv_buffer")
     75        # pdebug("trying to read recv_buffer")
    7676        while 1:
    7777          try:
    78             with Watchdog(3):
     78            with Watchdog(5):
    7979              recv_buffer += recv.read(1)
    8080          except Watchdog:
Note: See TracChangeset for help on using the changeset viewer.