From: chrishoder Date: Tue, 22 Jan 2013 02:33:19 +0000 (+0000) Subject: Updates to GoodFETMCPCANCommunication.py. Slight changes to commenting with filters. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=395f21739bcc43cf11e168268ddbc41026d77bff;hp=9a80a19cb770d327da52ec6d04ad0fc564f62270 Updates to GoodFETMCPCANCommunication.py. Slight changes to commenting with filters. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1398 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 67616be..8fbec7e 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -71,6 +71,8 @@ class GoodFETMCPCANCommunication: #### ON-CHIP FILTERING if(standardid != None): + comment = comment+"Filtering for SID "; + self.client.MCPreqstatConfiguration(); self.client.poke8(0x60,0x26); # set RXB0 CTRL register to ONLY accept STANDARD messages with filter match (RXM1=0, RMX0=1, BUKT=1) self.client.poke8(0x20,0xFF); #set buffer 0 mask 1 (SID 10:3) to FF @@ -111,6 +113,7 @@ class GoodFETMCPCANCommunication: if (verbose == True): print "Filtering for SID %d (0x%02xh) with filter #%d"%(ID, ID, filter); + comment = comment + "%d " %(ID); self.client.MCPsetrate(freq);