debug on the spit method in the communication file
authorchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 1 Feb 2013 03:47:51 +0000 (03:47 +0000)
committerchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 1 Feb 2013 03:47:51 +0000 (03:47 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1436 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMCPCANCommunication.py

index 8f141b0..f91958e 100644 (file)
@@ -396,7 +396,7 @@ class GoodFETMCPCANCommunication:
     
     def spitSingle(self,freq, standardid, repeat, duration = None, debug = False, packet = None):
         self.spitSetup(freq);
-        spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None):
+        spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None)
 
     def spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None):
     
@@ -452,10 +452,11 @@ class GoodFETMCPCANCommunication:
                 starttime = time.time();
                 while((time.time()-starttime < duration)):
                     self.client.MCPrts(TXB0=True);
+                    print "MSG printed"
             else:
                 while(1): 
                     self.client.MCPrts(TXB0=True);
-    
+        print "messages injected"
         # MORE DEBUGGING        
         if(debug): 
             checkcount = 0;