diff dbg/dbg.py @ 40:6b947f6d69d9

more docs and last minute bug fixes
author james <jb302@eecs.qmul.ac.uk>
date Tue, 22 Apr 2014 00:21:59 +0100
parents db6b8c9552bb
children
line wrap: on
line diff
--- a/dbg/dbg.py	Mon Apr 21 19:37:21 2014 +0100
+++ b/dbg/dbg.py	Tue Apr 22 00:21:59 2014 +0100
@@ -10,16 +10,18 @@
     
     def __init__(self):
         self.Emu = None
+        self.snd = self.snd_file
+        self.rcv = self.rcv_file
         open('out', 'w').close()
     
     # Alternetive snd and rcv functions need to be
     # written read/write using serial buffer to make
     # this class talk to an emulator running on
     # an MCU
-    def snd(self, m):
+    def snd_file(self, m):
         self.Emu.stdin.write(struct.pack('>B', m))
 
-    def rcv(self, l):
+    def rcv_file(self, l):
         lc = 0
         while lc != l:
             lc = os.path.getsize('out')