Revision 244
added time to common.py
trunk/common/common.py | ||
---|---|---|
22 | 22 |
|
23 | 23 |
import serial |
24 | 24 |
import sys |
25 |
import time |
|
25 | 26 |
|
26 | 27 |
keypadTimeout = 11 #in seconds |
27 | 28 |
|
... | ... | |
99 | 100 |
|
100 | 101 |
def sendTool(t): |
101 | 102 |
tn = t |
102 |
print "seding power to tool ID",tn |
|
103 |
print "sending power to tool ID",tn
|
|
103 | 104 |
sendMessage(tn, TT_ON, "") |
104 | 105 |
|
105 | 106 |
def sendKeyRequest(): |
106 |
print "seding key request" |
|
107 |
print "sending key request"
|
|
107 | 108 |
retries = 0 |
108 | 109 |
while retries < TT_MAX_RETRY: |
109 | 110 |
sendMessage(2, TT_GET_KEY, "") |
Also available in: Unified diff