Revision 294
updated to use TT_GRANT instead of deprecated TT_ON, and also updated test/main.c to use majority and call parse_packet
manualtron.py | ||
---|---|---|
41 | 41 |
print "cardnum:",card |
42 | 42 |
return True |
43 | 43 |
|
44 |
def tool(t): |
|
45 |
common.sendMessage(t, common.TT_GRANT, "") |
|
46 |
if common.checkAck(t): |
|
47 |
print "got ACK" |
|
48 |
else: |
|
49 |
print "NO ACK" |
|
44 | 50 |
|
45 | 51 |
def ping(t): |
46 | 52 |
common.sendMessage(t, common.TT_PING, "") |
Also available in: Unified diff