From 81f54b75ee20b8330badf83b0f30bb18a5b831e1 Mon Sep 17 00:00:00 2001 From: haddaway Date: Sat, 20 Oct 2012 15:49:10 -0700 Subject: [PATCH] Updates --- libtoorchat.py | 1 + recv_loop.py | 4 ++-- toorchat.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libtoorchat.py b/libtoorchat.py index 8f78733..613b2d2 100644 --- a/libtoorchat.py +++ b/libtoorchat.py @@ -10,6 +10,7 @@ class ToorChatProtocol(): ''' This is used to send a simple message over the toorchat protocol ''' msg = ToorChatMessage(message, user) self.device.RFxmit(msg.to_string()) + print msg.to_string() @classmethod def get_packet_start(cls): diff --git a/recv_loop.py b/recv_loop.py index afab15b..dd652b1 100644 --- a/recv_loop.py +++ b/recv_loop.py @@ -16,8 +16,8 @@ def main(): protocol = ToorChatProtocol(badge) while True: try: - msg, timestamp = badge.RFrecv() - print msg + print badge.RFrecv() + # print msg except ChipconUsbTimeoutException: pass diff --git a/toorchat.py b/toorchat.py index fa8de13..53ad0da 100755 --- a/toorchat.py +++ b/toorchat.py @@ -18,7 +18,7 @@ def main(): try: # msg, timestamp = badge.RFrecv() # print "enter a message" - send = raw_input("Enter a message") + send = raw_input("Enter a message\n") protocol.send_message(send) except ChipconUsbTimeoutException: pass