From 395f21739bcc43cf11e168268ddbc41026d77bff Mon Sep 17 00:00:00 2001 From: chrishoder Date: Tue, 22 Jan 2013 02:33:19 +0000 Subject: [PATCH 1/1] 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 --- client/GoodFETMCPCANCommunication.py | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.20.1