From 5697ddbc0de91b8eb8cbde1f7fbf7bcd990ce836 Mon Sep 17 00:00:00 2001 From: chrishoder Date: Fri, 1 Feb 2013 03:16:02 +0000 Subject: [PATCH] spit upgrades in mainDisplay and communication files git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1434 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETMCPCANCommunication.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/GoodFETMCPCANCommunication.py b/client/GoodFETMCPCANCommunication.py index 75d9662..b4a781d 100644 --- a/client/GoodFETMCPCANCommunication.py +++ b/client/GoodFETMCPCANCommunication.py @@ -393,10 +393,14 @@ class GoodFETMCPCANCommunication: self.client.MCPsetrate(freq); self.client.MCPreqstatNormal(); - def spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None): + 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): + + def spit(self,freq, standardid, repeat, duration = None, debug = False, packet = None): + + #### split SID into different regs SIDlow = (standardid[0] & 0x07) << 5; # get SID bits 2:0, rotate them to bits 7:5 SIDhigh = (standardid[0] >> 3) & 0xFF; # get SID bits 10:3, rotate them to bits 7:0 -- 2.20.1