missing modulename and fix refactoring

This commit is contained in:
tim watts 2016-01-05 22:00:19 +00:00
parent 8267f2ba4a
commit 3092d2c043
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import sys
from wire import hex2bytes, decode_big_endian, encode_big_endian
from server import TMSPServer
from reader import BytesBuffer
from tmsp.wire import hex2bytes, decode_big_endian, encode_big_endian
from tmsp.server import TMSPServer
from tmsp.reader import BytesBuffer
class CounterApplication():

View File

@ -111,6 +111,7 @@ class TMSPServer():
# messages are length prefixed
conn.resBuf.write(encode(1))
conn.resBuf.write([resTypeByte])
conn.fd.send(str(conn.resBuf.buf))
conn.msgLength = 0
conn.inProgress = False
conn.resBuf = BytesBuffer(bytearray())