packet['length'] = dp5 & 0x0f
#generate the data section
packet['length'] = dp5 & 0x0f
#generate the data section
- for i in range(0,length):
+ for i in range(0,packet['length']):
idx = 5 + i
dbidx = 'db%d'%i
packet[dbidx] = data[idx]
idx = 5 + i
dbidx = 'db%d'%i
packet[dbidx] = data[idx]
#add the data to list if the pointer was included
if(data != None):
#data.append(self.client.packet2parsedstr(packet))
#add the data to list if the pointer was included
if(data != None):
#data.append(self.client.packet2parsedstr(packet))
- data.put(self.client.packet2parsedstr(packet))
+ data.put(self.client.packet2parsed(packet))
if(debug == True):
#check packet status
MCPstatusReg = self.client.MCPrxstatus();
if(debug == True):
#check packet status
MCPstatusReg = self.client.MCPrxstatus();