summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
49f6a87)
dp2 = ord(data[1])
dp5 = ord(data[4])
dp2 = ord(data[1])
dp5 = ord(data[4])
- #converts the CAN message to a string
#get the ide bit. allows us to check to see if we have an extended
#frame
ide = (dp2 & 0x0f)>>3
#get the ide bit. allows us to check to see if we have an extended
#frame
ide = (dp2 & 0x0f)>>3
from random import randrange
from GoodFETMCPCAN import GoodFETMCPCAN;
from intelhex import IntelHex;
from random import randrange
from GoodFETMCPCAN import GoodFETMCPCAN;
from intelhex import IntelHex;
class GoodFETMCPCANCommunication:
class GoodFETMCPCANCommunication:
#add the data to list if the pointer was included
if(data != None):
#add the data to list if the pointer was included
if(data != None):
- data.append(self.client.packet2parsedstr(packet))
-
+ #data.append(self.client.packet2parsedstr(packet))
+ data.put(self.client.packet2parsedstr(packet))
if(debug == True):
#check packet status
MCPstatusReg = self.client.MCPrxstatus();
if(debug == True):
#check packet status
MCPstatusReg = self.client.MCPrxstatus();