fixed some bugs in filter sweep messages
authorchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 26 Jan 2013 23:26:10 +0000 (23:26 +0000)
committerchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 26 Jan 2013 23:26:10 +0000 (23:26 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1421 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMCPCANCommunication.py

index ba6d564..04a635a 100644 (file)
@@ -234,7 +234,7 @@ class GoodFETMCPCANCommunication:
                         msgIDs.append(j)
         return msgIDs
     
-    def sweepRandom(self, freq, time = 5, number):
+    def sweepRandom(self, freq, number = 5, time = 5,):
         msgIDs = []
         ids = []
         for i in range(0,number,6):
@@ -247,7 +247,7 @@ class GoodFETMCPCANCommunication:
                 ids.append(id)
             print comment
             description = "Running a sweep filer for all the possible standard IDs. This runs the following : " + comment
-            count = self.sniff(freq=freq, duration=time, description=description, comment = comment, filename, standardid = idsTemp)
+            count = self.sniff(freq=freq, duration=time, description=description, comment = comment, standardid = idsTemp)
             if( count != 0):
                 for element in idsTemp:
                     comment = "sweepFilter: %d" % (element)
@@ -346,7 +346,7 @@ class GoodFETMCPCANCommunication:
                     
     
         
-    def spit(self,freq=500, standardid,debug):
+    def spit(self,freq, standardid,debug):
         
         comm.reset();
         self.client.MCPsetrate(freq);